[Answer]-Django : uploading images

1👍

I have absolutely no idea why you keep going on about image uploads being tied to models. It isn’t, in any way at all: there is no code in the Model class that deals with image uploads. Even the File and Image fields don’t have any code dealing with uploads: all they do is call out to the Storage class, which is exactly what you should do.

clime has already given you the link to the file upload docs. As you should be able to see, they explain fully how to upload a file from a form, with absolutely no mention of models at all.

Leave a comment