home / django_tickets / tickets

tickets: 8593

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
8593 2008-08-27 08:25:32 2011-09-28 16:12:30 2022-03-06 03:42:39.961921 Ready for checkin closed File uploads/storage Bug Normal 1.0 fixed Image upload in Windows changes filename to lowercase When using an ImageField and uploading an image via admin, say the filename was Test.jpg, uploading it in Linux will save the file as Test.jpg on the disk, and the reference in the database is also Test.jpg, things work normally as expected here. However, when uploading the same file in Windows, the filename is saved on the disk as test.jpg (all lower case), but in the database is still referenced as Test.jpg. Since the filesystem in Windows is not case sensitive, this is not really much of an issue immediately. If you however, then copy your Django based site back to a Linux based machine, you will get a missing image, as it is expected to find the file "Test.jpg" in the filesystem, however the file is "test.jpg". In this case, this can become a bit of a problem. I am not sure if the problem is related to Django or Python on Windows. SmileyChris robvdl upload image lowercase 0 1 0 0 0 0
Powered by Datasette · Queries took 90.631ms