Last modified: 2012-08-29 18:12:15 UTC
Select the first monument under Belarus and attempt to upload an image here. The upload fails due to a long file name. We should surface this error better and also ensure the filename is never too long.
The error is now surfaced: https://github.com/wikimedia/WLMMobile/pull/169/files
How was this resolved? We are showing the error but not preventing this from happening in future. We need to rethink our filenames.
My bad, I went through the steps to reproduce since the change you mentioned had been merged and had no problems uploading an image (everything uploaded fine to testwiki), so it seemed this had been resolved.
To be clear the monument in question is called: Аўгустоўскі канал:водны шлях, які ўключае зарэгуляваны ўчастак р. Чорная Ганча ад Дзяржаўнай граніцы з Рэспублікай Польшча да в. Сонічы (13 км), штучны ўчастак канала ад в. Сонічы да шлюза«Нямнова» (6,5 км)гідравузел «Нямнова»: Гарадзенскі раён. Тэрыторыя ў межах матэрыяльнай нерухомай гісторыка-культурнай каштоўнасьці, устаноўленых праектам «Зоны аховы і рэжымы іх утрыманьня гісторыка-культурнай каштоўнасьці «Аўгустоўскі канал»
The current behavior is to surface an error to the user that the filename is too long, but there is no way to resolve the error since the user has no control over the filename. No good.
Note that there's actually a limit of 240 UTF-8 bytes enforced!
Initial stab at https://github.com/wikimedia/WLMMobile/pull/195 The limit is halved and tweaked because we've got some weird limitations in swift for the thumbnails breaking on longer names. :( Not sure exactly what's what there...