Page 1 of 1
My Aquaria - unable to upload image
Posted: 06 May 2008, 13:39
by Martin S
Excellent addition to the site...
Whilst trying to set up my first aquaria, and after filling it all in, hit submit and lost it all
Tried again, with minimum data and it saved OK - then went back in to add in the image, but it wouldn't let me add the image from my PC. I get the message 'Your uploaded image must be in JPEG format. Other file types are not allowed.' even though the image is 'tank_updated.jpg' (have tried with 'tank_updated.jpeg' but still no joy). Image is 119kb. I also found it would not let me save the aquaria if it was call 'Rekord 70', but 'My Rekord 70' works!
Martin
Re: My Aquaria - unable to upload image
Posted: 10 May 2008, 11:24
by Jools
Hi Martin,
Can you try it again now? I think some code I put it to stop you removing the image if you edit the data once an image had been uploaded was causing the problem.
Jools
Re: My Aquaria - unable to upload image
Posted: 10 May 2008, 11:24
by I_Xeno
I have te same problem, i just tried it again
Re: My Aquaria - unable to upload image
Posted: 10 May 2008, 11:42
by Jools
bennyvis wrote:I have te same problem, i just tried it again
I think it wasn't fully uploaded and you were very quick! Try it now, I got it to work...
Jools
Re: My Aquaria - unable to upload image
Posted: 10 May 2008, 21:24
by drpleco
I can't get anything to upload either.
My pics are all ~144k
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 00:02
by Kostas
Doesnt work for me either...Whats the maximum allowed image size to use at the My Aquaria page?
Thank you very much in advance!
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 03:48
by alga
I have the samllest JPEG I can get and it still won't load........ I'll keep trying because I like this new feature..
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 09:15
by Jools
You know, I just don't understand it. It works fine for me and I've even tested images that didn't work for other folks and they did work for me. What I will do is change the error messages to be more specific and then if you guys can report what error messages you are getting it might help track down the issue.
Will post again when I am ready for you all to try again (if you don't mind the time!).
Jools
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 10:50
by Jools
For security reasons, I check the type of file being sent to the Planet web server. I find now that this is set by the *browser*, not by PHP or the web server, and browsers are not consistent. For example IE6/7 will upload a progressive JPEG as image/pjpeg, while Firefox and Opera will upload it as image/jpeg. More importantly IE will try and determine the mime type of the file by actually inspecting its contents. For example if you rename a perfectly valid PNG file to end with .zip instead, IE will still send a mime type of image/x-png, where-as Firefox and Opera will send application/x-zip-compressed and application/zip respectively, even though the file is a valid PNG.
I have changed the error message to tell you what mime type your browser things it's sending. If it's not one we know about, you will get an error message like this:
Your uploaded image must be in JPEG format.
Other file types are not allowed.
It appears you tried to upload a mime type of XXXXXXXX
So please upload again. If you do get this error, please tell me what XXXXX is by posting in this thread. I will then see if I can allow those types in.
Cheers,
Jools
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 11:18
by Iwona
My error message is:
Your uploaded image must be in JPEG format.
Other file types are not allowed.
It appears you tried to upload an file type of image/pjpeg.
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 12:48
by alga
Mine too-
It appears you tried to upload an file type of image/pjpeg
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 13:42
by Iwona
And now I lost my avatar too
, and can't upload a new one.
I tried to upload from my computer, and then directly from
www.photobucket.com and nothing works.
Iwona
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 14:19
by drpleco
Your uploaded image must be in JPEG format.
Other file types are not allowed.
It appears you tried to upload an file type of image/pjpeg.
This was the error message I received, and I am using IE7 as my browser. I'll try again from firefox and see what happens.
Thanks Jools!
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 15:12
by drpleco
It seems to work well from firefox!
One thing I found - If the name of the tank has quotation marks in it, then the image won't load. For example, I had to rename my tank "Sticks and Stones" to Sticks and Stones before the image would work.
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 17:25
by Haavard Stoere
I got the same message when using Internet Explorer:
Your uploaded image must be in JPEG format.
Other file types are not allowed.
It appears you tried to upload an file type of image/pjpeg.
I changed to Firefox, and it works.
About the size and quality of the photos...?
I made an image with 1000pixels in length, and only 84kb. The quality after uploading have been greatly reduced. Should the image be only 640 pixels to avoid this?
Very nice feature by the way
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 17:47
by Jools
OK, so IE calls a JPEG file pjpeg, the p standing for, rather ironically in this case, progressive. So, I have amended the code to allow this type as well. You should now be able to use IE to upload as easily as firefox etc.
Jools
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 17:51
by Jools
Haavard Stoere wrote:About the size and quality of the photos...?
I made an image with 1000pixels in length, and only 84kb. The quality after uploading have been greatly reduced. Should the image be only 640 pixels to avoid this?
There is no maximum width, except that images wider than 1280 pixels probably won't work. Try using less compression on the image and upload it again, each image is resampled and cached into various sizes before it is displayed, it will be something in that stage that is responsible for image quality loss. In fact, I think I know what it might be and I will go and fix it now!
Jools
Re: My Aquaria - unable to upload image
Posted: 11 May 2008, 19:14
by I_Xeno
it works now.
Thanks for your afforts ;)
Re: My Aquaria - unable to upload image
Posted: 12 May 2008, 07:10
by Jools
bennyvis wrote:it works now.
Thanks for your afforts ;)
No problem, I think I'll move this one into the "resolved" forum now.
Jools
Re: My Aquaria - unable to upload image
Posted: 12 May 2008, 12:10
by Martin S
bennyvis wrote:it works now.
Thanks for your afforts ;)
Ditto. Thanks Jools.