Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Sandro Pellegrinetti
October 1, 2015, 10:16 am
rate this thread
just a simple script, i'm tring to upload a file from a form tag.
If in the uploaded filename i have some aphostrophe or commas, i recive 500 error.
<form action='test.php' method='post' enctype="multipart/form-data">
<input id='photo' type='file' name='fhoto'>
<input type="submit" value="Submit">
filename = tes't.jpg
Any way to fix it ?
Re: file upload "500 internal server error" with filenames with commas
You should have an entry in your PHP error log telling you what the
problem is. The log file location is system dependent; if you don't
know where it is, create a file with only the following one liner:
and load it into your browser. Look for the line
The xxxx will be where your error log is.
Remove the "x" from my email address
- » Mail client functionality on php application - use existing platform or build from scratch...
- — Previous thread in » PHP Scripting Forum