Jump to content

HTML file uploads...not getting file?


AncientSage

Recommended Posts

I have a file upload script, the php works perfectly, and the HTML part of it can upload small files without problem, but when it comes time to upload a file such as an Mp3, it is not getting it (as the php is executing as it should). The HTML script is as follows...

[code]
<form action="{FORM_ACTION}" method="post" enctype="multipart/form-data">
<input type="file" name="ufile">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
<br>
<input type="submit" value="Upload">
</form>
[/code]

Thanks for any help...

Note: Ignore {FORM_ACTION}, it's defined in php.
Link to comment
Share on other sites

There is also a setting in php.ini called 'upload_max_filesize'. It's default value is '2M'. You can change it by running the following command in your upgrade script:
[code]ini_set('upload_max_filesize','whatever size you want');[/code]
Link to comment
Share on other sites

[quote author=Daniel0 link=topic=99746.msg393514#msg393514 date=1152361150]
There is also a setting in php.ini called 'upload_max_filesize'. It's default value is '2M'. You can change it by running the following command in your upgrade script:
[code]ini_set('upload_max_filesize','whatever size you want');[/code]
[/quote]

Also, check the POST_MAX_SIZE which is similar to the above. It needs to be roughly the same as UPLOAD_MAX_FILESIZE.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.