Cutehacks / duperagent

A QML clone of VisionMedia's SuperAgent module.
MIT License
56 stars 23 forks source link

Correctly resolve file paths for uploads #3

Closed alexleutgoeb closed 8 years ago

alexleutgoeb commented 8 years ago

The current attach implementation does not play nicely with different URLs and only accepts absolute paths without a file scheme. The proposed change allows to use files with the following formats, especially coming from the QML FileDialog component:

It's still possible to use an absolute or relative path with

which is the recommended way of resolving local files.

As mentioned, this change allows easy uploading of images from mobile devices.