To focus on the filename
Op 21-8-2012 19:58, Brion Vibber schreef:
On Mon, Aug 20, 2012 at 5:53 PM, Philip Chang <pchang@wikimedia.org mailto:pchang@wikimedia.org> wrote:
Erik, thanks for the great feedback. Further to Jon's comments: 1) Brion, any idea if and why Cordova uses .jpeg instead of .jpg?
The final filename should be whatever we provide to MediaWiki's upload API; I can't think how it would come from Cordova. It looks like it's being added by MediaWiki, actually -- we're sending a filename without an extension.
08-21 10:56:30.784: D/FileTransfer(9443): fileName: Second and Howard Streets District (taken on 21Aug2012 10hrs56mins22secs)
Perhaps adding a '.jpg' extension would eliminate the auto-added one?
The filename should be clear and unique. Some things you can hash into the filename: * Name * Username * Date * Monument id * Timestamp taken
You want to trim name if it exceeds a certain length. Inluding the id and the username makes sure that you'll only collide with yourself. Timestamp in iso format is probably a bit cleaner (YYYY-MM-DD HH:mm).
Maarten