# PHP: upload file \> 2MB

**URL:** <https://forum.kirupa.com/t/php-upload-file-2mb/34227>\
**Category:** programming\
**Created:** [October 30, 2003, 1:42am UTC](https://forum.kirupa.com/t/php-upload-file-2mb/34227 "2003-10-30T01:42:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rysolag](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rysolag](https://forum.kirupa.com/u/rysolag)\
**Post date:** [October 30, 2003, 1:42am UTC](https://forum.kirupa.com/t/php-upload-file-2mb/34227/1 "2003-10-30T01:42:30Z")

</div>

I have been trying to solve this problem for a week now.

I am using php and I cannot upload files that are larger than 2 MB in size.

I have messed with post\_max\_size, upload\_max\_filesize and max\_execution\_time in php.ini…nothing works.

Any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2003, 1:49am UTC](https://forum.kirupa.com/t/php-upload-file-2mb/34227/2 "2003-10-30T01:49:41Z")

</div>

2 megabytes really is a lot to upload through php, i think files this big gotta be ftp’ed… im not really sure…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2003, 2:15am UTC](https://forum.kirupa.com/t/php-upload-file-2mb/34227/3 "2003-10-30T02:15:14Z")

</div>

I want to let users upload mp3s to my server.

It must be web based.

Can I do this?

Any suggestions?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2003, 6:03am UTC](https://forum.kirupa.com/t/php-upload-file-2mb/34227/4 "2003-10-30T06:03:05Z")

</div>

The problem you have uploading large files using any browser based upload method is that the server process times out before the upload completes. The only solution is to extend the default timeout value, but that has serious performance ramifications on a web server, so unless your site is on it’s own box the system admin isn’t likely to do that.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2003, 9:36am UTC](https://forum.kirupa.com/t/php-upload-file-2mb/34227/5 "2003-10-30T09:36:46Z")

</div>

are you talking about max\_execution\_time?

I understand what you are saying but I am running this whole system on my own computer via IIS. The upload time is almost instantaneous. I am very stumped.

But maybe I should’nt do it this way if my future host is unwilling to allow for a long execution time.

What are common or more practical ways for uploading large files(3-15 MB) to a server via a website(a browser)??

Need HELP…
