When attempting to replace an existing file on an S3 source, the upload fails. Here's the sequence of events:
- Upload file
sample_image.jpg
for the first time (works fine) - Click 'Upload' and select
sample_image.jpg
again from the local filesystem - Click 'Replace Existing File' button in modal window when prompted by Assets
- The Assets loading bar appears but remains empty forever and the new file is not uploaded.
In the console, this error displays:
Uncaught SyntaxError: Unexpected token <
This issue does not happen when uploading to a local directory, only when uploading to an S3 directory.
- EE 2.9.2
- Assets 2.5
garnish-0.1.min.map
as being loaded... – kmgdev Mar 19 '15 at 17:05admin.php
, line 1 - clicking it reveals a totally blank file. – kmgdev Mar 19 '15 at 17:08