Django restframework how to edit POST form
im working on api that resizes images. I want to upload just one file save it and resize and keep it in another folder.
HTML form asks me for 2 files, but I need to upload just one
In your Meta class of the ImageSerializer there is a fields attribute. It should only contain the files you want to upload.
fields ("file")
not
fields ("file", "file1")