aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/javascript
Commit message (Collapse)AuthorAgeFilesLines
* Don’t include an undefined X-CSRF-Token headerCameron Bothner2018-12-271-1/+6
| | | | | | | If there is not a `csrf-token` meta tag in the document, the blob record XHR was including an `X-CSRF-Token` header set to the string "undefined." Instead of setting it to undefined, it should not be included in the absence of a meta tag.
* ASt direct uploads: account for <button type="submit"> elementsTasos Maschalidis2018-11-241-2/+2
|
* Enable multiple submit buttons for Active Storage formsChris Seelus2018-08-181-1/+12
|
* Clarify conditionGeorge Claghorn2018-07-271-1/+1
| | | | && binds tighter than || in JavaScript, but we ought not expect readers to remember language trivia.
* Fix directly uploading zero-byte filesGeorge Claghorn2018-07-271-1/+1
| | | | Closes #33450.
* fixes a bug in IE11 that broke direct uploadskylekeesling2018-04-061-1/+1
|
* Handle file checksumming errorsGeorge Claghorn2018-02-281-0/+6
|
* Clear Blob's type before sending itGeorge Claghorn2018-02-261-1/+1
| | | | Prevent older versions of Chrome from appending a Content-Type header containing the Blob type, rendering the request invalid if we intend not to provide a Content-Type. This behavior was observed in Chrome 58.
* Work around Firefox's refusal to dispatch events on disabled elements. Fixes ↵Javan Makhmali2018-01-081-1/+10
| | | | | | #31393 Brought to you by a 12 year old Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=329509
* Active Storage: Fix direct uploads in IE 11Javan Makhmali2017-12-231-3/+17
| | | | | Fixes #31531 Closes #31540
* Fix activestorage direct upload on firefox_N_I_X_O_N_2017-09-122-0/+2
| | | | | | | | Direct upload on firefox is not working because it can’t handle click events on “input[type=submit]”. After a successful upload we can see on console a xml parse error, it happens because AWS S3 success body response is empty, so changing the reponseType suppress this error.
* Add 'activestorage/' from commit '3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58'Rafael Mendonça França2017-07-319-0/+427
git-subtree-dir: activestorage git-subtree-mainline: 0d58e7e478e79c2d6b2a39a4444d2a17a903b2a6 git-subtree-split: 3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58