You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When uploading the same filename to two separate folders, the URL of both files are the same (meaning one is incorrect).
Per my understanding of the code logic, this is due to using the filename as the unique index.
I started changing the code to use the GDrive FileID, but this required large changes to correctly display the filename in the admin view.
Instead, maybe the entire path+filename can be used as the unique ID? And then to subclass the ClearableFileInput widget to remove the path for display?
WDYT?
The text was updated successfully, but these errors were encountered:
I fixed this in a separate branch: https://github.com/NadavK/django-googledrive-storage.
It's a breaking change, so am not requesting to merge back.
Would appreciate if @torre76 can comment if maybe there is a better way to deal with duplicates?
When uploading the same filename to two separate folders, the URL of both files are the same (meaning one is incorrect).
Per my understanding of the code logic, this is due to using the filename as the unique index.
I started changing the code to use the GDrive FileID, but this required large changes to correctly display the filename in the admin view.
Instead, maybe the entire path+filename can be used as the unique ID? And then to subclass the ClearableFileInput widget to remove the path for display?
WDYT?
The text was updated successfully, but these errors were encountered: