Storage of PDFs etc


(Jamie Smith) #1

Hello. We have a Custom Form via which users will upload up to three documents. The form will be fairly heavily used and I just wanted to check that documents are always stored on the server as opposed to blobs in the database, whether access rights result in "__data" being in the URL or not. As far as I can see, it's always on the server, but wanted to confirm.

 

Cheers.


(Jamie Smith) #2

Can any of the Squiz devs confirm whether I'm correct about documents always being stored as files on the server and not as DB blobs? Many thanks.


(Chiranjivi Upreti) #3

Hi Jamie

 

Yes files uploaded via Custom Custom form (using File Upload question type) are always stored as files on the server.

 

If the "Create Location" option on the File Upload question is not set then files are uploaded to the submission asset's data directory. Files uploaded to the submission data directory will not result into publicly accessible "__data" url and can be accessed via Submisison Logs screen.

 

And if File Upload question's "Create Location" is set then the files will be uploaded to the that create location as a regular file asset, which too will be uploaded to the server as a file.


(Jamie Smith) #4

Many thanks, Chiranjivi.