Karmabunny / sprout3

SproutCMS: content management and framework
http://getsproutcms.com
GNU General Public License v2.0
24 stars 3 forks source link

Adding support for other img locations in chunked upload #92

Closed jamiemonksuk closed 10 months ago

jamiemonksuk commented 12 months ago

A simple change that allows an optional image source override to be applied for the chunked uploader.

This allows us to pull data from other locations (e.g. private/secure file systems) for display in the preview.

This is achieved by providing an $opts array, with the key file_url pointing to the desired image.

This is tested and working on a client site.