Issue
I have a model that contains a FileField
. I am manually saving the file through an API call, though, so I don't want the model to upload anything for the FileField
, but I do want it to save the file name and location. Can this be done?
Solution
When you do not use a model form to save the data, no file is added to the filesystem. So the file field is simply a string pointing to the right place.
Answered By - Private
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.