I'm trying to save the link to a local file in my model using a model form. I don't want to upload the selected file itself, I only want to save the fullpath to the file:
- Select a file via
<input type="file">
on the rendered form view - Submit the form via
POST
- Dont upload the selected file, but save the fullpath of the file e.g. 'C:/myuploadedfile.pdf' in my model
What I tried so far, aresome hacks in form.clean()
which didn't even worked.
Some suggestions how to accomplish such requirement?