Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
nishttal  
#1 Posted : Thursday, September 11, 2008 4:08:32 AM(UTC)
nishttal

Rank: Newbie

Groups: Member
Joined: 9/8/2008(UTC)
Posts: 5

Is it possible to determine the mimetype of the uploaded image at the server ? Something like image/png.

Additionally, is it possible to upload thumbnails as PNGs ? It appears that they are being uploaded as JPEGs by default.

Fedor  
#2 Posted : Thursday, September 11, 2008 5:00:42 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hello,

Quote:
Is it possible to determine the mimetype of the uploaded image at the server ? Something like image/png.

Sure. Image Uploader sends data to the server in standard multipart/form-data format as described with RFC 1867. You can do it the same was as if you uploaded file using <input type=file>. What is you server platform?

Quote:
Additionally, is it possible to upload thumbnails as PNGs ? It appears that they are being uploaded as JPEGs by default.

Unfortunately there is no way to do it.

Best regards,

Fedor Skvortsov

nishttal  
#3 Posted : Thursday, September 11, 2008 5:24:56 AM(UTC)
nishttal

Rank: Newbie

Groups: Member
Joined: 9/8/2008(UTC)
Posts: 5

Quote:
Sure. Image Uploader sends data to the server in standard multipart/form-data format as described with RFC 1867.

I'm using mod_perl2 at the server. I can see only one Content-type header (multipart/form-data; boundary=xxx....) in the whole request. I am not sure if Apache2 is squashing the data together, I am investigating.

I know this is not really related to the uploader but if you have had this sort of issue before, do let me know.

Fedor  
#4 Posted : Friday, September 12, 2008 6:35:32 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Unfortunately I am not Perl guru. You need to google or ask on Perl message boards about it.
Best regards,

Fedor Skvortsov

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.