WebSite X5Help Center

9 RESPUESTAS - 1 ÚTIL - 1 CORRECTO
Paul M.
Paul M.
Moderator

Hello Duncan,

At the present moment there isn't actually a way to alter where the file goes.  WebSite X5 will upload any attached files to the root folder of your project on the server.

It would be nice to be able to have more control over where the files end up.

Hopefully this will be something which might be added in a future release.  It's been discussed before on the forum.

Kind regards,

Paul

Search the WebSite X5 Help Center

Leer más
Publicado en de Paul M.
Esterre Fatto
Esterre Fatto
User

Hello,

AFAIK the files go in the folder specified in Data Management -> Server folder with write access. If no folder is specified then the files go in the root folder

Leer más
Publicado en de Esterre Fatto
Duncan Baker
Duncan Baker
User
Autor

Thanks both

Leer más
Publicado en de Duncan Baker
Duncan Baker
Duncan Baker
User
Autor

I have been laying around with this and would be grateful for further advice.

I can set the contact form system up to send the file to me by email. That works fine and is OK as long as the file size is not too big. I can set the contact form system up to send all the data to a MySQL database on the server - but then how do I download it? I cannot work out how "send to file" works.

Grateful for your thoughts chaps and chapesses.

Duncan

Leer más
Publicado en de Duncan Baker
Paul M.
Paul M.
Moderator

When using the send to database option all the information goes to the database EXCEPT the file attachment, which goes to the root folder of the WebSite X5 project on the server (or any specified public writing folder, as pointed out by Esterre).  You can download any such attachments using either the built-in FTP engine in Step 5, or a third-party FTP client such as FileZilla.

My previous answer was based on findings from another recent discussion regarding this, Duncan.

I think if you read that particular discussion it might go at least some way to answering your question.  It certainly helped me at the time.

Contact Form Object ,where the stores users information?

Leer más
Publicado en de Paul M.
Duncan Baker
Duncan Baker
User
Autor

Thanks Paul. That other thread was very interesting.

So, sending to database works fine. I get the file (picture or whatever) in the folder on my server so I can download that using FTP. Great!

But....

All the text field data now end up in the MySQL database which is not very helpful. I can't find an easy way to download from the MySQL database on my server.

I suppose I coudl have two forms - one sending me the text field data by email and one uploading the files (pictures etc) to the folder under the root on the server. That would work but not very elegantly.

Also I cannot seem to get the "send data to a file" option to work. If I try to select the file, I just get the option of pointing to a file on my PC whereas, presumably, I should be wanting to find a file on the server.

Muddled.com!

Leer más
Publicado en de Duncan Baker
Duncan Baker
Duncan Baker
User
Autor

And, as Esterre says, I have made a folder on my server under the X5 root folder and the "attachements" go in there - so that's great. That was a quesion in the other thread that you mentioned Paul.

It's is now just dealing with the ordinary data fields!!

Leer más
Publicado en de Duncan Baker
Paul M.
Paul M.
Moderator

You're getting into web programming territory here.  If you select the option 'Send data to a file' then the file in question should be something like a PHP or ASP script, which can take the data from the fields and do something with it.  This would use custom code, which Incomedia does not support: it is up to you as the user to create the script or use a third-party one.

Likewise, there is no way to read from a database without using either a programmed script, or by employing a software tool like phpMyAdmin:

https://www.phpmyadmin.net/

The latter is free, and is often found in webhosting control panels.  It's easy to use and would allow you to get at the submitted data quickly.  However, it is still a 'manual' solution.

If you want to do anything more sophisticated with the data then it may be time to hire a web programmer!

Leer más
Publicado en de Paul M.
Duncan Baker
Duncan Baker
User
Autor

Two forms I think laughing

Thanks Paul 

Leer más
Publicado en de Duncan Baker