#3372 - Upload issues on MSN's
| Identifier | #3372 |
|---|---|
| Issue type | Minor issue (breaks specific functionality) |
| Title | Upload issues on MSN's |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | core |
| Description | When uploading avatars through an MSN, the file is stored on the primary site regardless of where it was uploaded from. When viewing the primary site, everything displays fine, but the secondary site references its own base URL when it should reference the primary site URL.
For example: User uploads avatar on secondary site (2nd.com), file gets stored on primary (1st.com) Viewing forum posts and profiles on the primary site (1st.com) appear to have the correct URL (this references avatars on 1st.com) However, when viewing forum posts or profiles on the secondary site (2nd.com), the avatar image is broken as it's trying to reference an image stored on 1st.com There may be a setting I'm missing somewhere, or it could be a bug. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
"However, when viewing forum posts or profiles on the secondary site (2nd.com), the avatar image is broken as it's trying to reference an image stored on 2ND.com"
If you can confirm it is correctly set, I'll reopen this issue - but a code review tells me that it should work okay.
I have set the board_prefix for both sites (even though I'm not sure if this needed to be done on the primary site too).
I was mistaken though, I misinformed you. Here's what's happening:
Upload avatar on 2nd site, file gets stored on 2nd site (should get stored on 1st site)
Profile view from 2nd site references 1st site
Profile view from 1st site references 1st site
It seems that both sites reference the correct URL, but if I upload through the 2nd site, it doesn't store itself on the 1st.
However, if I upload the avatar through the 1st site, it displays correctly on both sites.
Uploads can only be stored on the site they are uploaded to, as there is no data-saving connection between the sites. However, it is supposed to use absolute URLs appropriately to workaround that and there were a couple of bugs.