Results 1 to 2 of 2
  1. #1

    Member Since
    Mar 27, 2008
    Trouble with a form for file upload
    Hi all,

    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.

    Any ideas?

  2. #2

    Thyamine's Avatar
    Member Since
    Apr 23, 2007
    Coatesville, PA
    MBP 15", 2.33 GHz, 2Gb
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. File upload location change?
    By greenasgrass in forum Apple Notebooks
    Replies: 6
    Last Post: 07-26-2015, 10:43 AM
  2. File upload to Amazon iCloud
    By Simol in forum OS X - Operating System
    Replies: 4
    Last Post: 06-01-2013, 04:14 PM
  3. How do i upload a pdf to an online form?
    By lasorrell in forum Switcher Hangout
    Replies: 2
    Last Post: 07-28-2012, 06:37 PM
  4. Replies: 12
    Last Post: 08-28-2011, 05:18 PM
  5. how to enlarge thumbnails in file upload window?
    By xtracrispy in forum Switcher Hangout
    Replies: 0
    Last Post: 04-28-2009, 12:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts