Jump to content

php upload script distorts file


arag0rn

Recommended Posts

i want to make a php upload script. i used a script that let me upload to the server. However, there is this problem that the file gets distorted on upload. For example the image file
[code]
http://gymkhana.iitb.ac.in/~ecell/temp/94.jpg
[/code]

on upload using the upload script becomes
[code]
http://gymkhana.iitb.ac.in/~ecell/temp/uploadedfiles/94.jpg
[/code]

And ya, it cant be a script problem because i tried 3 diiferent scripts.
On the same server phpbb also fails to upload proper avatars. The avatars are distorted when the image becomes bigger.

So, i guess it is some kind of server problem. Any idea as to what could be wrong?

And its not only images. Word files also get corrupt
Link to comment
https://forums.phpfreaks.com/topic/11185-php-upload-script-distorts-file/
Share on other sites

[!--quoteo(post=380014:date=Jun 4 2006, 08:21 PM:name=ARAG0RN)--][div class=\'quotetop\']QUOTE(ARAG0RN @ Jun 4 2006, 08:21 PM) [snapback]380014[/snapback][/div][div class=\'quotemain\'][!--quotec--]
i want to make a php upload script. i used a script that let me upload to the server. However, there is this problem that the file gets distorted on upload. For example the image file
[code]
http://gymkhana.iitb.ac.in/~ecell/temp/94.jpg
[/code]

on upload using the upload script becomes
[code]
http://gymkhana.iitb.ac.in/~ecell/temp/uploadedfiles/94.jpg
[/code]

And ya, it cant be a script problem because i tried 3 diiferent scripts.
On the same server phpbb also fails to upload proper avatars. The avatars are distorted when the image becomes bigger.

So, i guess it is some kind of server problem. Any idea as to what could be wrong?

And its not only images. Word files also get corrupt
[/quote]

To me looks like you have set the php.ini to a specified directory check ok.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.