Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

file upload "500 internal server error" with filenames with commas

39 views
Skip to first unread message

Sandro Pellegrinetti

unread,
Oct 1, 2015, 6:16:24 AM10/1/15
to
Hallo there

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.

HTML
<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 ?

Sandro

J.O. Aho

unread,
Oct 1, 2015, 11:43:34 AM10/1/15
to
Everything depends on your test.php and as no one here is a mind reader,
we don't know what you wrote in it.


--

//Aho

Jerry Stuckle

unread,
Oct 1, 2015, 11:54:32 AM10/1/15
to
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:

<?php phpinfo();?>

and load it into your browser. Look for the line

error_log=xxxx

The xxxx will be where your error log is.

--
==================
Remove the "x" from my email address
Jerry Stuckle
jstu...@attglobal.net
==================
0 new messages