Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #15691

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

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: file upload "500 internal server error" with filenames with commas
Date 2015-10-01 11:54 -0400
Organization A noiseless patient Spider
Message-ID <mujkrq$6ho$1@dont-email.me> (permalink)
References <b2072c36-8c78-4094-91ff-061f897f8450@googlegroups.com>

Show all headers | View raw


On 10/1/2015 6:16 AM, Sandro Pellegrinetti wrote:
> 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
> 

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
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

file upload "500 internal server error" with filenames with commas Sandro Pellegrinetti <spaikid@gmail.com> - 2015-10-01 03:16 -0700
  Re: file upload "500 internal server error" with filenames with commas "J.O. Aho" <user@example.net> - 2015-10-01 17:43 +0200
  Re: file upload "500 internal server error" with filenames with commas Jerry Stuckle <jstucklex@attglobal.net> - 2015-10-01 11:54 -0400

csiph-web