Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Fix deleting an uploaded file #283

Merged
merged 1 commit into from
Jul 27, 2020
Merged

Fix deleting an uploaded file #283

merged 1 commit into from
Jul 27, 2020

Conversation

lkkmpn
Copy link

@lkkmpn lkkmpn commented Jul 25, 2020

If we delete an uploaded file, the entity is retrieved from the database and its file field is therefore not an instance of UploadedFile, but a string. With this change, we check whether the file field is an instance of UploadedFile or a string, and ensure that the file name is correctly set.

This fixes issue #279.

If we delete an uploaded file, the entity is retrieved from the database and its file field is therefore not an instance of UploadedFile, but a string. With this change, we check whether the file field is an instance of UploadedFile or a string, and ensure that the file name is correctly set.
@davidyell davidyell merged commit 89b08d6 into davidyell:cake-4 Jul 27, 2020
@davidyell
Copy link
Owner

Great, thanks very much!

@lkkmpn lkkmpn deleted the cake-4 branch July 27, 2020 13:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants