Hi Everyone,

File uploads are not working as expected. 

Please read the detailed explanation here.
https://stackoverflow.com/questions/55024898/django-rest-framework-file-uploads-not-working

Expected outcome is: When the user updates the existing entry using the 
update views, previous attachment should get overwritten i.e. delete the 
previous file and store the new one.
which is not happening in version 3.9.0. 
Also, existing file is being renamed with filename_XXXXXXX.extension. 
(XXXXXXX = some random alphanumeric 7 letters string ) e.g. for a filename 
sample.txt was renamed to sample_57yB4Cl.txt.  

So, the uploads folder now has two files with same content, sample.txt and 
sample_57yB4Cl.txt.

Can anyone guide me to a solution? 
If not, should I raise a bug in the repo of DRF?? 

Thanks in advance.
RyuCoder

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to