Jump to content

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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.