I've personally wasted a week between these two issues, with no end in sight, so hopefully this post will be of at least some use to someone in the future. For anyone else who may be spending weeks trying to find answers: ..1. Tor - upload timeout issue If you expect your users to try to access your site using Tor, know that WebFaction will block your uploads (if you or your users upload a file via your website) if the upload lasts longer than 12-17 seconds. Test this yourself by running a Tor-enabled browser, and uploading a file. Monitor the length of time of the upload and witness the upload failure. Then try the same upload with Tor disabled, and watch it work without any problem. At time of writing (02-08-2019), there is apparently no known fix for the problem. The only answer is to tell your users to whitelist your site, thereby disabling Tor for your website. Of course this is problematic since many users rely on Tor in oppressive countries or to reduce their online footprint, but there seems to be no viable answer. ..2. Nginx - upload progress monitoring issue As you'll see in this topic from 2013, apparently nginx prevents file upload progress monitoring via chunked file uploads:
There is a workaround that involves disabling nginx for a particular port:
This workaround, however, will also disable SSL. There is apparently another option, called "gp.fileupload": Unfortunately, the documentation on the "gp.fileupload" site is dreadful, and there are few (if any) working examples to learn from online. If anyone has examples -- particularly regarding the "File Upload middleware" (gp.fileupload.FileUpload) -- that could save anyone struggling with this issue a lot of time. Thanks in advance if you have any working code snippets that could function as a guide (i.e. not copy/pasted from the dreadful "gp.fileupload" website). asked 09 Feb, 01:41 altsocial |
We are happy to continue to work with you in the support tickets you have opened for these cases. The community may also have some answers. answered 09 Feb, 22:50 johns ♦♦ |
WebFaction Support has been singularly unhelpful and has thus far wasted a week of my time. answered 09 Feb, 22:59 altsocial |