08-14-2008, 05:06 PM #1
Trouble with a form for file upload
- Member Since
- Mar 27, 2008
I'm trying to get a file upload tag to work on my local php/mysql setup.
Here's the code (relevant parts):
<form method="post" action="insert.php" enctype="multipart/form-data">
<input type="text" name="short" size=50>
<input type="file" name="userfile" size=50>
<input type="hidden" name="MAX_FILE_SIZE" value="30000">
I also bumped the "upload_max_file_size" variable in php.ini 5M
That and everything else I've tried all look right to me, but the form won't pass a value. It passes along the "short" value just fine, but the "userfile" value isn't getting sent to "insert.php" in Firefox.
The Safari browser just dies completely, won't submit the form.
08-14-2008, 06:28 PM #2
Try taking the size=50 out of the input field for the type=file, just in case it's trying to read the directory path and it's longer than 50 characters.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By mountaindreamlife in forum Apple NotebooksReplies: 6Last Post: 07-26-2015, 09:43 AM
By Simol in forum OS X - Operating SystemReplies: 4Last Post: 06-01-2013, 03:14 PM
By lasorrell in forum Switcher HangoutReplies: 2Last Post: 07-28-2012, 05:37 PM
By shutz in forum OS X - Operating SystemReplies: 12Last Post: 08-28-2011, 04:18 PM
By xtracrispy in forum Switcher HangoutReplies: 0Last Post: 04-27-2009, 11:00 PM