# Uploading with local file system

**URL:** <https://forum.kirupa.com/t/uploading-with-local-file-system/33881>\
**Category:** programming\
**Created:** [October 24, 2003, 7:35pm UTC](https://forum.kirupa.com/t/uploading-with-local-file-system/33881 "2003-10-24T19:35:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dangerousjohnny](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@dangerousjohnny](https://forum.kirupa.com/u/dangerousjohnny)\
**Post date:** [October 24, 2003, 7:35pm UTC](https://forum.kirupa.com/t/uploading-with-local-file-system/33881/1 "2003-10-24T19:35:55Z")

</div>

How & what language is best for uploading files to a server? I want the user to be able to ‘browse’ their local file system to select the file(s) and then press upload them to send them off.

---

<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 24, 2003, 8:37pm UTC](https://forum.kirupa.com/t/uploading-with-local-file-system/33881/2 "2003-10-24T20:37:48Z")

</div>

ASP/PHP/CF…all will do, no “best” here…  
depends on your host…  
input type=file/ search Google on file+upload+script+ the language you want…

---

<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 24, 2003, 9:28pm UTC](https://forum.kirupa.com/t/uploading-with-local-file-system/33881/3 "2003-10-24T21:28:27Z")

</div>

i found that php uploading was much easier

---

<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 24, 2003, 9:40pm UTC](https://forum.kirupa.com/t/uploading-with-local-file-system/33881/4 "2003-10-24T21:40:39Z")

</div>

…depends, coz you’ll have to move it from the default tmp directory to where you want to keep it, maybe rename…error checking…  
at least, you can download ready-to-go scripts for 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 25, 2003, 1:20am UTC](https://forum.kirupa.com/t/uploading-with-local-file-system/33881/5 "2003-10-25T01:20:31Z")

</div>

Is there a file size limit?? I am trying to do this with mp3s and it’s not working…

I posted my code on a similar thread.

---

<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 25, 2003, 1:26am UTC](https://forum.kirupa.com/t/uploading-with-local-file-system/33881/6 "2003-10-25T01:26:12Z")

</div>

you can specify a size limit sure, also mime types as well

---

<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 25, 2003, 2:08am UTC](https://forum.kirupa.com/t/uploading-with-local-file-system/33881/7 "2003-10-25T02:08:38Z")

</div>

Yeah…

I used this code in my html:

\<input type=“hidden” name=“MAX\_FILE\_SIZE” value=“5120000”\>

But I can still only upload files that are about 2MB in size.

Any help would be cool.

Thanks

---

<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 25, 2003, 2:11am UTC](https://forum.kirupa.com/t/uploading-with-local-file-system/33881/8 "2003-10-25T02:11:00Z")

</div>

That’s because there is also a set file size limit found in the PHP.ini file…

If you are using the PHP.ini file that is, search for it on your server computer or change it through use of script… You should find a line that looks similar to file size limit or uploading\_limit and see a 2m beside it. Change that to 8m or any ##m for all I care… Whatever you need good buddy.

---

<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 25, 2003, 5:20am UTC](https://forum.kirupa.com/t/uploading-with-local-file-system/33881/9 "2003-10-25T05:20:35Z")

</div>

In C:\WINDOWS there are two files (php and tmpphp) that look exactly the same. Both of these files have all the settings. In both files I set upload\_max\_filesize = 10M and it still does not work. Also in these files, I set post\_max\_size = 10M.

I tried setting these vars in the script but it does not work, what would that look like?

Any ideas, thanks…
