php - How to edit htacess file to support file upload -
i have sample image upload code written in php. ios developer calls web service. file upload works 1 server fails upload in server.
checked permissions, directory listing etc. of above when trying upload image, server throws 500 internal error.
i think there might issue .htaccess
can guide me edit htaccess supports image upload.
thank you. while uploading via browser, file upload works fine. not returning errors
here error log php warning: fopen(xml/) [function.fopen]: failed open stream: no such file or directory in /home/appsimon/public_html/api/import.php on line 271
actually worked on server till lastly week. of sudden file upload failed
code in htaccess
#old php handler #deny #allow ip address
only these 3 commented lines error app console
<warning>: aresponse:<!doctype html public "-//ietf//dtd html 2.0//en"> <html><head> <title>500 internal server error</title> </head><body> <h1>internal server error</h1> <p>the server encountered internal error or misconfiguration , unable finish request.</p> <p>please contact server administrator, webmaster@appsimon.com , inform them of time error occurred, , might have done may have caused error.</p> <p>more info error may available in server error log.</p> <p>additionally, 500 internal server error error encountered while trying utilize errordocument handle request.</p> </body></html> feb 6 00:30:48 varmas-iphone snmc[1944] <warning>: -jsonvalue failed. error trace is: ( "error domain=org.brautaset.json.errordomain code=3 \"unrecognised leading character\" userinfo=0x541a40 {nslocalizeddescription=unrecognised leading character}" ) feb 6 00:30:49 varmas-iphone snmc[1944] <warning>: fail
in htaccess seek adding these values , see happens
php_value upload_max_filesize 100m php_value post_max_size 100m php_value max_execution_time 180 php_value max_input_time 180
adjust values needed
php .htaccess file-upload webserver
No comments:
Post a Comment