form in admin to allow upload file from local machine OR upload file from local filesystem OR upload file from url - as result one filed in model that contains file path
Hello,
I need a way(form in admin) to allow user to select how he will upload a file:
-- from local(his) machine
-- from filesystem(where django is running)
-- from external url
Does not matter what way user selects, I want to read that file and write to custom location(path).
The model itself should contain only path to file (FileField?), but form that represents the model in admin webui should provide different ui controls(mentioned above) to upload the file.
How can I achieve this? Is there some kind of form wizard in admin?
If I use form wizard when adding entry, how can I edit that entry later?
How to check whether the file on the path has been changed or not?
I use django 1.5.1.
Thanks.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home