Last year WLM-HU used for file names the following structure:
* File:[Name of monument] ([ID]. számú műemlék) [No.].jpg

where
* számú műemlék is number monument
* No. is a continous number (for the first image with an unique ID is nothing, for the second one is 2 etc.)

Samat


On Tue, Aug 21, 2012 at 9:00 PM, Maarten Dammers <maarten@mdammers.nl> wrote:
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> 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

_______________________________________________
Wiki Loves Monuments mailing list
WikiLovesMonuments@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikilovesmonuments
http://www.wikilovesmonuments.org