When attempting to replace an existing file on an S3 source, the upload fails. Here's the sequence of events:
- Upload file
sample_image.jpgfor the first time (works fine)
- Click 'Upload' and select
sample_image.jpgagain 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