if you want to upload an image entitled desktop.jpg it works, if it is entitled desktop.JPG, it doesnt show the website, but gives you just the option to download it.
http://www.coh2.org/file/2121/desktop4.jpg
works!
www.coh2.org/file/2120/desktop3.JPG
doesnt work!
its the same exact picture!
JPG file upload incorrect
2 Aug 2013, 17:35 PM
#1
1
Posts: 1021 | Subs: 1
2 Aug 2013, 17:36 PM
#2
1
Posts: 1021 | Subs: 1
and it would be very good to have the option to delete files you dont need anymore
2 Aug 2013, 17:38 PM
#3
Posts: 881
What is this, you can upload files?
Edit: nice, never saw that feature before, and I've even been in that menu countless times!
Edit: nice, never saw that feature before, and I've even been in that menu countless times!
2 Aug 2013, 18:08 PM
#4
Posts: 1164
wihtout looking into it any further, i'd guess it's the same problem as downloading replays with IE (wrong content-type in header).
10 Oct 2013, 11:56 AM
#5
Posts: 1164
*bump*
error still present... i actually took the time to look into it, and whats wrong here is the content-disposition: it's inline for lower case jpg and its attachment for upper case JPG. should be a 2 line fix in apache config.
error still present... i actually took the time to look into it, and whats wrong here is the content-disposition: it's inline for lower case jpg and its attachment for upper case JPG. should be a 2 line fix in apache config.
26 Mar 2014, 23:47 PM
#6
Posts: 3709 | Subs: 2
It's a bit more complicated because they are not served directly but go through xSendFile.
But yeah in practice, the config of that just said that forceDownload was false for only 'jpg', 'gif', 'png'.
I'll add strtolower around the extension check. Is there other file types that shouldn't be downloaded while we're at it?
And why do I even need to define that on the server, wouldn't it be more logical for each browser to decide what to do with each type?
But yeah in practice, the config of that just said that forceDownload was false for only 'jpg', 'gif', 'png'.
I'll add strtolower around the extension check. Is there other file types that shouldn't be downloaded while we're at it?
And why do I even need to define that on the server, wouldn't it be more logical for each browser to decide what to do with each type?
27 Mar 2014, 07:19 AM
#7
Posts: 1164
i don't know the exact intricacies, but my guess is:
IF you send a content-disposition type, the browser respects what you tell him (and in this case displays the raw data). if you DON'T send a content-disposition (and/or the type is not application/octet), the browser will fall back to some sort of default he has set for certain file/content types.
IF you send a content-disposition type, the browser respects what you tell him (and in this case displays the raw data). if you DON'T send a content-disposition (and/or the type is not application/octet), the browser will fall back to some sort of default he has set for certain file/content types.
27 Mar 2014, 17:43 PM
#8
Posts: 3709 | Subs: 2
Thanks !
I've fixed it for uppercase jpg, png and gif.
All others are still attachment.
I've fixed it for uppercase jpg, png and gif.
All others are still attachment.
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
6 | |||||
39 | |||||
11 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.611220.735+5
- 3.35057.860+15
- 4.1110614.644+11
- 5.276108.719+27
- 6.306114.729+2
- 7.918405.694+2
- 8.262137.657+3
- 9.722440.621+4
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1236
Board Info
778 users are online:
778 guests
0 post in the last 24h
6 posts in the last week
34 posts in the last month
6 posts in the last week
34 posts in the last month
Registered members: 49123
Welcome our newest member, monopolygou4gm
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, monopolygou4gm
Most online: 2043 users on 29 Oct 2023, 01:04 AM