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

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: file upload "500 internal server error" with filenames with commas
Date 2015-10-01 17:43 +0200
Message-ID <d752kmFm3jbU1@mid.individual.net> (permalink)
References <b2072c36-8c78-4094-91ff-061f897f8450@googlegroups.com>

Show all headers | 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