File Upload IssuesPRO

Upload Errors

If you are getting an error when uploading files it is likely due to a server-side misconfiguration.

You should check the following when you get this error:

Server-Side Errors

We recommend checking your PHP and web server error logs for any issues. A server-side error will cause an error to be displayed in the DropzoneJS file upload component.

You can use your browser inspector to check for server errors. Open your browser inspector and then look in the console and/or network tab.

Server-Side Settings

You may need to contact your hosting provider to confirm these settings are sufficient for your form upload requirements.

PHP Settings

Setting Description
max_execution_timeout Ensure this setting is large enough to support the time it takes the maximum allowed file size to your server. Learn more
post_max_size Ensure this setting is large enough to accept the size of file being uploaded to your server. Learn more
upload_max_filesize Ensure this setting is large enough to accept the size of file being uploaded to your server. Learn more

DropzoneJS Timeouts

The DropzoneJS component has a default timeout of 30 seconds. If files are taking longer than 30 seconds to upload you will need to increase this value to something suitable. To do this:

  1. Click the settings icon on the file field.
  2. Click the Advanced tab.
  3. Adjust the Timeout (ms) setting to suit.

WS Form - File - DropzoneJS - Timeout

Slow File Uploads

The time it takes for a file to upload depends on various factors, including:

  • The size of the file.
    Larger files take longer to upload.
  • The speed of your internet connection.
    The slower your internet connection, the longer files take to upload.
  • The bandwidth available to your hosting.
    The slower the bandwidth, the longer files take to upload.
  • The amount of traffic between you and your server.
    The busier your website, the less available bandwidth and the longer it will take for files to upload.

Typically on an internet connections, and in particular when using cellular data, the upload speed will be significantly slower that your download speed and this too can make uploads appear to be slow.

Slow upload speeds are not caused by WS Form. WS Form will upload files using all available bandwidth to it. Speed test all hops between your device and your hosting provider to determine where any bottlenecks might exist.