Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Can't download images :/

Author
Message
PiratSS
22
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 26th Nov 2004 02:03
Everytime I try to view an image on the forums, a download of some php file popsup
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 26th Nov 2004 02:31
Are you clicking the Download link or the View one?

Some browsers cannee handle the mime type, but I would be surprised to find one (although, it appears we have)

"I am not young enough to know everything."
- Oscar Wilde
Luke B
20
Years of Service
User Offline
Joined: 13th Nov 2004
Location: Exeter, UK
Posted: 26th Nov 2004 02:36
You can view the image in firefox but only download in IE

PS: Why does it say the first post in this thread was at 19:03 - this is 7:03 pm, but its now 6:36pm. It says my time offset is 0 hours so the times should be right or am i wrong?

TI 126Mhz, 584MB RAM, no HDD, 320x320 screen... wait that's my Palm
>> Athlon XP 2400+, 512MB RAM, 120GB HDD, XP Pro SP2 with DX 9.0c
Want an eight way Opteron *workstation*
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 26th Nov 2004 02:37
The server is in France, an hour ahead of you it would appear. I'll check the View button in IE now.

"I am not young enough to know everything."
- Oscar Wilde
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 26th Nov 2004 02:46
Every now nad then somebody attaches a dodgy files which just gives you a php file to download.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 26th Nov 2004 02:47
view button works fine in IE for me. As long as people remember to put .jpg in small letters.

(you really should make an announcement about this rich, It took me ages to find out how to get the view button to appear, someone told me in this thread : http://forum.thegamecreators.com/?m=forum_view&t=43054&b=2)

Part of solving the problem is actually noticing that the problem is there in the first place

Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 26th Nov 2004 02:49
Quote: "View button works fine in IE for me. As long as people remember to put .jpg in small letters."


Actually I fixed that a few hours ago, it'll appear regardless of upper to lower case extensions now.

"I am not young enough to know everything."
- Oscar Wilde
Luke B
20
Years of Service
User Offline
Joined: 13th Nov 2004
Location: Exeter, UK
Posted: 26th Nov 2004 02:49
@ David

Why a dodgy file? I attatched a perfectly decent screenshot once, and it only gave the PHP file with the view button. I could download it, though.

TI 126Mhz, 584MB RAM, no HDD, 320x320 screen... wait that's my Palm
>> Athlon XP 2400+, 512MB RAM, 120GB HDD, XP Pro SP2 with DX 9.0c
Want an eight way Opteron *workstation*
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 26th Nov 2004 03:04 Edited at: 26th Nov 2004 03:06
Quote: "Actually I fixed that a few hours ago, it'll appear regardless of upper to lower case extensions now"


oh. cool

edit: err it doesn't work rich...

Part of solving the problem is actually noticing that the problem is there in the first place

Attachments

Login to view attachments
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 26th Nov 2004 03:07
Works here - I can see a View button (which displays the image) - what do you get?

"I am not young enough to know everything."
- Oscar Wilde
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 26th Nov 2004 03:09
I can see it...lol


:: WinXP Pro SP 1 : 2.8 GHz Celeron : 512 MB DIMM RAM : 64 MB Radeon IGP 345M : 40 GB HDD ::
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 26th Nov 2004 03:09
yeah, but when you click it it downloads the php file

Part of solving the problem is actually noticing that the problem is there in the first place

Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 26th Nov 2004 04:42
Oh that's what you were talking about. I was talking about the upper/lower case issue on filenames.

"I am not young enough to know everything."
- Oscar Wilde
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 26th Nov 2004 05:42
Works perfectly in Firefox. View opens the image in a new window, Download opens a download window for the file.
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 26th Nov 2004 06:25
Damnit Chris I was gonna say that, you beat me to it

AKA teh great Pet Rat.
Peace sells...but who's buying??
PiratSS
22
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 26th Nov 2004 20:24
Dodo's attached file doesnt work when I try to view it. Gives me xt_appolo_pic.php

I have IE 6.0.2900.2180.xpsp_sp2_rtm.040803-2158
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Nov 2004 20:34
Quote: "Works perfectly in Firefox"


it ONLY works in bloody FireFox...
I've tried Explorer (which it WAS working in), Studio.Internet, Operah, & Safari.

this was all working fine no more than 2 days ago!


Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 26th Nov 2004 20:40
Well then that tells you Firefox is better!

AKA teh great Pet Rat.
Peace sells...but who's buying??
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Nov 2004 20:50 Edited at: 26th Nov 2004 20:58
Quote: "Well then that tells you Firefox is better!"


Studio.Internet utilises the W3 Standard to the letter!
There is something definately wrong with the site, what appears to be happening is that the forum's php is deliberately causing the download call.

Because if you press view, download the file and save it's extension as .jpg it works fine.



[post.edit] I added the picture in Dodo's to see if the image tags would show it... what do ya know it does, and i also checked a post that 2 days ago the image viewed (First Sword in 3D Section) which oddly has become incompatible to see.


empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 26th Nov 2004 22:45 Edited at: 26th Nov 2004 22:45
Apparently only IE has problems with it. It works perfectly with Opera too.

Play Nice! Play Basic!
Version 1.02 available now!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Nov 2004 23:04
There are calls you can do in PHP that invoke the download interface. Its usefull for forcing a download rather than just opening with default settings.

The PHP code probably tried to recognise certain file types by extension I'm guessing.. Not sure why it needs to..

Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 27th Nov 2004 00:43
The "View" button?

Quote: "I've seen the word programming and I'm not sure what it means. Anybody please explain?"


Quote: "We shouldn't sacrifice the truth to preserve "balance"."
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 27th Nov 2004 00:57
I believe the problem is where spaces are in the filename.

Attached to this post is image called test1.jpg

Boo!

Attachments

Login to view attachments
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 27th Nov 2004 00:57
and on this post is: test 1.jpg

Boo!

Attachments

Login to view attachments
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 27th Nov 2004 01:00 Edited at: 27th Nov 2004 01:00
DAMN, no problems there then.

What about: test3.JPG

Boo!

Attachments

Login to view attachments
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Nov 2004 01:00
Spooky both yours work, the one above still doesn't.


spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 27th Nov 2004 01:01
OK, does seem to be the uppercase JPG then. Hopefully a simple fix for Rich.

Boo!
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Nov 2004 01:07
it makes no sense how Explorer was working with some images but now isn't, also makes no sense how the newly posted images are working, further makes no sense why Opera wasn't working but now is.

personally when dealing with linux i always use the JS command String.Lower() surely there is a similar PHP one, saves alot of time and problem. But still doesn't explain the bugs as when things are uploaded they should be renamed anyways.

Explorer can read ANY internet format no matter the extension.. so what problems the indirect are causing are obviously from the php script.


JerBil
20
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 27th Nov 2004 01:07
Yeah, the one with JPG want to dl a php file, the others work ok.

-JerBil
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 27th Nov 2004 01:22
Quote: "Why a dodgy file? I attatched a perfectly decent screenshot once, and it only gave the PHP file with the view button. I could download it, though."


I assumed that there was something about the file (may just be headers etc) that was causing the system to break.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 27th Nov 2004 02:06
Rich has done a fix, and I have never not (double negative ) managed to download a file. I'm using FF btw


:: WinXP Pro SP 1 : 2.8 GHz Celeron : 512 MB DIMM RAM : 64 MB Radeon IGP 345M : 40 GB HDD ::
PiratSS
22
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 27th Nov 2004 02:11 Edited at: 27th Nov 2004 02:12
Yep, its definately something wrong with View image code. Download works fine even with a JPG
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 27th Nov 2004 02:13
All he has fixed is to show the 'view' button when extension is uppercase, like: image.JPG

Unfortunely in IE, it does not view the piccy but brings up a download box for a file called xt_apollo_pic.php which it quite happily then downloads. Once downloaded you can rename it to .jpg as in reality it is actually the image file.

The 'Download' button works perfectly by the way.

Boo!
Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 27th Nov 2004 03:37
What if 2 people attach the same file?

Quote: "I've seen the word programming and I'm not sure what it means. Anybody please explain?"


Quote: "We shouldn't sacrifice the truth to preserve "balance"."

Attachments

Login to view attachments
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Nov 2004 04:00
Yeah, but Spooky it WAS working only 2 days ago.. so if all he has done is altered it to view JPG which broke it, then he should just lower case as it's uploaded.
That said all uploads should be tabled anyways, so the extension should be unimportant :-\

espcially as I mentioned, if he simply sets the php view to open a new window linking the picture file IE will automatically open it in whatever format it's in .. be it png / gif / jpg no matter the extention.
god knows why people have to try and over complicate issues like this sometimes.


Login to post a reply

Server time is: 2024-11-26 13:42:20
Your offset time is: 2024-11-26 13:42:20