Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
en:create:questions:upload [08.11.2019 23:24] – created d.aulenkampen:create:questions:upload [28.06.2021 19:46] sophia.schauer
Line 1: Line 1:
-====== Upload file ========+====== File Upload ========
  
-The question type "Upload file" allows participants to upload a file to the survey server during the interview.+The question type "File Upload" allows participants to upload a file to the survey server during the interview.
  
-The uploaded files can be downloaded under **Collected data** -> **Uploaded files** either individually or bundled according to questionThe file name contains the number (CASE) of the data record.+**Important:** The amount of memory per survey project is limitedDepending on their content and file type, uploaded images require a lot of storage space.
  
-**Important:** The storage space per survey project is limitedUploaded images require -- depending on content and file type -- a lot of storage space.+**Important:** If participants upload large files (>500 KB), it may take a while after clicking "Next" until the file is transferred and the next page is loaded. 
 + 
 + 
 +===== Download Files ===== 
 + 
 +The uploaded files can be downloaded under **Collected Data** -> **Uploaded Files**. Either individually or bundled by question. The file name contains the number (CASE) of the data set in each case. 
 + 
 +===== Show Image ===== 
 + 
 +If the uploaded file is an image, you can use it in the current interview. The filename prefix ''%%upload://%'' allows access to the uploaded files. 
 + 
 +For the display, you still need the file name that SoSci Survey assigned when uploading the file. You can retrieve this from the dataset using ''[[:decreate:functions:value]]''. Together with the necessary HTML code, the display could then look like this. In the example, the question for "Upload file" has the identifier UP01. 
 +<code php> 
 +html(' 
 +    <div> 
 +        <img src="upload://'.value('UP01x02').'" style="max-width: 100%"> 
 +    </div> 
 +'); 
 +</code> 
 + 
 +**Note:** If participants upload large files, this can also lead to long loading times when the files are later integrated.
en/create/questions/upload.txt · Last modified: 28.06.2021 19:48 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki