arag0rn Posted June 4, 2006 Share Posted June 4, 2006 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 Link to comment https://forums.phpfreaks.com/topic/11185-php-upload-script-distorts-file/ Share on other sites More sharing options...
redarrow Posted June 4, 2006 Share Posted June 4, 2006 [!--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. Quote Link to comment https://forums.phpfreaks.com/topic/11185-php-upload-script-distorts-file/#findComment-41869 Share on other sites More sharing options...
arag0rn Posted June 5, 2006 Author Share Posted June 5, 2006 ^^^^bump^^^^^^^^^ Quote Link to comment https://forums.phpfreaks.com/topic/11185-php-upload-script-distorts-file/#findComment-41990 Share on other sites More sharing options...
AndyB Posted June 5, 2006 Share Posted June 5, 2006 If three different scripts produce distorted images, and phpbb uploads get distorted, and a Word file can get corrupted this isn't a php problem. It's a almost certainly a problem with your server. Tell your web host to fix it. Quote Link to comment https://forums.phpfreaks.com/topic/11185-php-upload-script-distorts-file/#findComment-41995 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.