| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 1
|
Hi there. I'm new to the forum and to web design in general, I'm really hoping that I can get some advice from experienced heads. At the moment I am designing a few pages on my iMac using Freeway Express. The main point of the pages is a form for users to pass on information. I have set it up ok, but I am really struggling with the file upload stuff. I have put the html in fine, but its all the server side stuff I get confused about. I have tried reading tutorials online but I get confused with Perl, CGI, cgi-bin folders (?), etc, etc. I don't know what much of it means at any deep level and I am thoroughly confused. I would be more than grateful if anyone could point me in the direction of a really good tutorial, or better still give me a really simple run down themselves. I hope I have included enough information here, if not ask away. Thanks in advance for any help, Matthew. |
|
|
|
|
|
#2 (permalink) |
|
Registered User
|
Does your server support PHP? If it does then you could use something like PHP: Handling file uploads - Manual If you want to change the file size limits you would have to edit php.ini but other than that it's pretty simple. |
|
|
|
#3 (permalink) |
|
iLurk
Join Date: Apr 2007
Location: England
Posts: 84
|
You could use something like this: PHP Code:
The file is uploaded and renamed to a random number (to stop people from overwriting files) I never got around to adding some sort of file type limitations or file size but it will get you started. |
|
|
|
#4 (permalink) |
|
Registered User
|
The file size limits are normally governed by php.ini which limits the max post size. I think the default is something like 2MB or 8MB which is fine if you just want to upload things like pictures but if you want to upload things like maybe an app then you should change this to a size which will suit your needs. |
|
![]() |