Create upload form
Автор: Sander V.
Просмотрено 1819,
Подписчики 1,
Размещенный 0
Hello,
Is it possible to create a form which can upload files to the webserver? So the webmaster can add files in a restricted page so other restricted users can access these files?
Thanks,
Sander
Размещено
Hi Sander,
You can use the Email Form Object in Step 3 to do this.
On the 'List' tab click 'Add' and select 'Attachment File'
The form accepts attachments in ZIP format (as well as a couple of image formats) so theoretically you could attach any file providing you compressed it to .zip first.
The only restriction would be any that your web host might impose on file sizes allowed.
Hope this helps,
Paul
Автор
Hi Paul,
I've seen this but this is an email form and not an upload form. Or am I mistaken?
Sander
You can use the form for whatever you wish, including use as an upload form.
It's perhaps unfortunate that it's known as the Email Form Object as it has more uses than email alone. For example, it can also send data to a database or a script.
If you simply wish to add files to your server then you would be better off using a standalone FTP program such as FileZilla, and creating a link from your restricted pages to said files.
Автор
Yes I use a standalone ftp prog myself, but its for a person who does not know how to do that. So an upload form would be nice.
If you use the Email Form Object then any files which are uploaded to your specified email address must be manually transferred to your server.
You will need custom PHP code to permit direct uploading from a form to a server. This would need careful coding as there are obvious security risks.