WebSite X5Help Center

 
Sander V.
Sander V.
User

Create upload form  en

Autor: Sander V.
Visitado 1816, Followers 1, Compartido 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

Publicado en
5 RESPUESTAS
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

Leer más
Publicado en de Paul M.
Sander V.
Sander V.
User
Autor

Hi Paul,

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

Sander

Leer más
Publicado en 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.

Leer más
Publicado en de Paul M.
Sander V.
Sander V.
User
Autor

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.

Leer más
Publicado en 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.

Leer más
Publicado en de Paul M.