I am using this module as a solution to posting images to imagefield on mobile devices that do not have a file picker that can be used with the regular uploader. This works perfectly with dropbox which will provide direct URLs to images. The only problem is that it provides those URLs in shortened format like bit.ly or tr.im. Filefield Sources will not follow the redirects and throws back an error saying the URL does not contain a jpg extension.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | filefield_sources_remote_redirect.patch | 3.3 KB | quicksketch |
Comments
Comment #1
quicksketchI've updated the code with this patch, which adds all extension checking after the initial cURL request to retrieve header information. cURL should follow the redirects (assuming it is allowed to do such redirects in the server configuration), then it will check the redirected path for file extensions.