WebSite X5Help Center

 
Sander V.
Sander V.
User

Create upload form  en

Author: Sander V.
Visited 1721, Followers 1, Shared 0  
Tags: form,upload

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

Posted on the
5 ANSWERS
Paul M.
Paul M.
Moderator

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

Read more
Posted on the from Paul M.
Sander V.
Sander V.
User
Author

Hi Paul,

I've seen this but this is an email form and not an upload form. Or am I mistaken?

Sander

Read more
Posted on the from Sander V.
Paul M.
Paul M.
Moderator

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.

Read more
Posted on the from Paul M.
Sander V.
Sander V.
User
Author

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.

Read more
Posted on the from Sander V.
Paul M.
Paul M.
Moderator

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.

Read more
Posted on the from Paul M.