Issue with Handling Image Fields When Updating Records #774
-
Hi, I'm back with another question regarding the issue with handling image fields when updating records in sqladmin. Issue Description However, I face an AttributeError indicating that a 'str' object has no attribute 'name'. This occurs because the library seems to attempt creating a new UploadFile object from a string path (the existing image URL) when no file is uploaded. Code Example
Error Message
This error occurs during the internal handling of form data when no new image file is uploaded, as the system still tries to process the image field as if a new file should be there. Questions
Thanks for your assistance🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey, what version of sqladmin are you using? |
Beta Was this translation helpful? Give feedback.
Yeah, the logic is specifically done for fastapi-storages. If you feel like it can be generalized, of course that'd be great.