Uploader needs your donations to keep working, please use the button below

Squarespace has good forms builder, but unfortunately there is no upload field to store user files or docs. It may be useful for user images, screenshots, pdf-forms or so. Sure you may use some side services to organize file uploading: Wufoo, JotForm and many others. And while they have great builders and file uploads, sometimes you need more than 3-5 forms or 1000 form views per month with free account.  So we decided to make a small javascript plugin, which add file upload fields to Squarespace forms and small web-service to handle these uploads.

If storing files on our server not your Google Drive (you may connect your Google Drive) - remember that files older than 30 days may be deleted without any notice. Our Server is not a storage, so please download submitted files in these 30 days.

Adding plugin on site

So first of all you need to add our plugin to page. The best option is Header Injection (if you want to use script globally on site) or Page Header Code Injection (if you want to use it on specific pages). If you have used Page Injection for Uploader and using Ajax-enabled template - it is general known, that anything injected there will be NOT executed after ajax page load. So if someone lands on any page WITHOUT Uploader Injection  and jumps to one WITH will do nothing. So please use Global Injections or you may disable Ajax Loading in Style Editor and use Page Injection then.

Let's add the script globally: 

<script src="//uploader.squarewebsites.org/sqs-form-upload.min.js"></script>

SquarespaceWebsites Uploader - Header Injection

Our plugin uses Simple-Ajax-Uploader, to overlap default Squarespace Forms text-fields, so show your love to his author. 

Now we need to create usual Squarespace Form and add text field which will become our upload button.

So Upload field is basically just a Text Field but with specific parameters in description/placeholder and that enables Upload here. So if you do not see Upload field in Form builder, just create Text field and add there FileField; to description - this converts field to Upload one.

 We edit these custom parameters in this field:

Description Section parameters, ";" delimiter

  • add FileField parameter to enable this field as File upload field - required;

  • set MaxSize  of file in KB, otherwise default value is 1024KB(1MB). The max file size we support at the time is 10MB per file;

  • add Multiple parameter for multiple files uploading;

  • set addText parameter to change button text, use underscore for spaces ex.  addText=Add_your_Files;

  • set UploadUrl parameter to use your own server (ex. UploadUrl=http://my-own-server.com;) or add nothing to use our own service.

  • add capture parameter to enable capture support on mobile devices

Placeholder Section parameters, "," delimiter

  • set the list of allowed extensions here to prevent users from uploading some files you don't need. Otherwise, next list will be used: ".jpg, .jpeg, .png, .gif, .txt". Our service supports many of document, archives and graphic extensions, but you may request some custom if you need.

So with all parameters you will get something like this:

SquarespaceWebsites Uploader - Set Text Field Parameters

Now refresh the page and you will see the button Add Files instead of text field - you may click and choose or drag-and-drop files here.

Registering your domain

But if you’re gonna to use our service for uploads - you need to go to SQS Form Uploader site and register your site domain. Otherwise, you will see such error when trying to upload:

Just register with email and password or use Facebook or Google account to sign up.

SquarespaceWebsites Uploader - Sign in

Once you log in, you may add Sites to your account. Name it and add at least Site Url in http://example.com format to save it. You may also add Squarespace Site Url if you want to handle uploads from Squarespace built-in domains (like https://mysite.squarespace.com) also. 

Attention! You are free to change Squarespace Site Url further, unless you want to change the main Site Url - then you need to remove current site clicking red close icon and add Site with new Site Url.

SquarespaceWebsites Uploader - Adding site

Now your site is added and users may now upload files. You will get Squarespace Form Submission email as usual, but now you will have the unique urls of uploaded files. Note, that these urls are secure and only you will be able to download files while you are logged in.

SquarespaceWebsites Uploader - Upload Files

SquarespaceWebsites Uploader - Squarespace Form Submission

You may also see uploads in Admin Uploads tab on SQS Form Uploader site:

SquarespaceWebsites Uploader - Uploads Tab

If you want, you may use your own Google Drive to store all uploads. First you need to click Connect GDrive button and allow SQS Form Uploader-app offline access. After you may see Connect GDrive button on each of your sites. Clicking this your site will be connected and gdrive icons appear. 

SquarespaceWebsites Uploader - Connect Google Drive

SquarespaceWebsites Uploader - Site is connected to Google Drive

While your site is connected to Google Drive, user uploads will be stored to SQS Form Uploader/your-site-address/ folder. And you will get direct Google Drive links to files now.

SquarespaceWebsites Uploader - Google Drive uploads

SquarespaceWebsites Uploader - Squarespace Form Submission(Google Drive)

Please use the form below to submit issues with Uploader

Name
Previous
Previous

Go To Next Slide When Vimeo Finished

Next
Next

How to add custom fonts to Squarespace site