19 Commits

Author SHA1 Message Date
dandds
0517bd1b0a Fix task order uploads.
Task order uploads and downloads were broken. Uploads were broken
because file content was eing read in as plaintext every time, resulting
in encoding issues. I updated the bundle to use the newer Azure JS SDK.
We can now use a method for uploading browser files directly without
having to read their content. This required a few small internal changes
to the upload component, since the response structure is different.

I also removed the `downloadUrl` method from the JS uploader since it
was not being used.

Downloads were broken because the method that generates the download
link was not updated to use the BlobSasPermissions class from the
updated Azure Python SDK.
2020-02-03 09:56:02 -05:00
richard-dds
910d31df30 Remove AwsUploader 2019-10-29 16:02:48 -04:00
richard-dds
83ca303e1f Disable attachmentInput when file is attached (with tests this time) 2019-08-30 16:13:59 -04:00
richard-dds
b182307174 Azure file downloads 2019-08-29 10:12:02 -04:00
richard-dds
d775bce3b7 Fix incorrect this in azure upload 2019-08-28 15:56:55 -04:00
richard-dds
85ba61b97b Formatting 2019-08-28 15:06:20 -04:00
richard-dds
de090a319b Pass objectName into upload constructor 2019-08-28 15:06:20 -04:00
richard-dds
7d1dfa1d0e Get presigned upload token via ajax request 2019-08-28 15:06:13 -04:00
richard-dds
9b7186c94f Formatting 2019-08-16 13:49:50 -04:00
richard-dds
b49d926d7a Both uploader impelementations should return same response 2019-08-15 14:10:28 -04:00
richard-dds
b48154f738 Fix MockUploader by returning ok response 2019-08-13 10:51:49 -04:00
richard-dds
59de01031c More secure SAS permissions for Azure upload 2019-08-06 13:53:52 -04:00
richard-dds
5329937eb9 Polyfill fetch 2019-08-06 10:39:46 -04:00
richard-dds
a4581e7a7c js this woes 2019-08-06 10:23:04 -04:00
richard-dds
68a1004bf1 Make Azure FE config injectable 2019-08-05 16:51:28 -04:00
richard-dds
e5a0318310 Formatting 2019-08-05 16:04:38 -04:00
richard-dds
0b201809a1 Configure js uploader based on CLOUD_PROVIDER environment var 2019-08-05 15:59:27 -04:00
richard-dds
94b6b320fb Provide mock implementation of uploader 2019-08-05 14:58:10 -04:00
richard-dds
8eba9a097d Add CSP file uploads 2019-08-05 14:58:10 -04:00