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


Groups > comp.lang.php > #15690

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

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: file upload "500 internal server error" with filenames with commas
Date Thu, 1 Oct 2015 17:43:18 +0200
Lines 24
Message-ID <d752kmFm3jbU1@mid.individual.net> (permalink)
References <b2072c36-8c78-4094-91ff-061f897f8450@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace individual.net 6AXgk25gfRMFTqmxqYvzMA6OrTrASc93rP9xR0rSA43IBOiaYo
Cancel-Lock sha1:SndGChDc6qBaDzfsswI10Wx44Lk=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
In-Reply-To <b2072c36-8c78-4094-91ff-061f897f8450@googlegroups.com>
Xref csiph.com comp.lang.php:15690

Show key headers only | View raw


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

Back to comp.lang.php | Previous | NextPrevious in thread | Next 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