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


Groups > comp.lang.php > #15689 > unrolled thread

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

Started bySandro Pellegrinetti <spaikid@gmail.com>
First post2015-10-01 03:16 -0700
Last post2015-10-01 11:54 -0400
Articles 3 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  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

#15689 — file upload "500 internal server error" with filenames with commas

FromSandro Pellegrinetti <spaikid@gmail.com>
Date2015-10-01 03:16 -0700
Subjectfile upload "500 internal server error" with filenames with commas
Message-ID<b2072c36-8c78-4094-91ff-061f897f8450@googlegroups.com>
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

[toc] | [next] | [standalone]


#15690

From"J.O. Aho" <user@example.net>
Date2015-10-01 17:43 +0200
Message-ID<d752kmFm3jbU1@mid.individual.net>
In reply to#15689
On 10/01/2015 12:16 PM, 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 ?

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

[toc] | [prev] | [next] | [standalone]


#15691

FromJerry Stuckle <jstucklex@attglobal.net>
Date2015-10-01 11:54 -0400
Message-ID<mujkrq$6ho$1@dont-email.me>
In reply to#15689
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
==================

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web