WebSite X5Help Center

 
Sander V.
Sander V.
User

Create upload form  en

Auteur : Sander V.
Visité 1729, Followers 1, Partagé 0  
Mots-clés :: 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

Posté le
5 RéPONSES
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

Lire plus
Posté le de Paul M.
Sander V.
Sander V.
User
Auteur

Hi Paul,

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

Sander

Lire plus
Posté le de 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.

Lire plus
Posté le de Paul M.
Sander V.
Sander V.
User
Auteur

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.

Lire plus
Posté le de 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.

Lire plus
Posté le de Paul M.