Sunday, February 28, 2016

Re: Ajax + Django + jQuery + HTML5

Usually image_file.url (assuming image_file is the name of your ImageField) should give you the full path to the local file. Not sure what you're using for your Ajax function/call though and how you have your web app set up on the REST part.

On Sun, Feb 28, 2016 at 2:46 PM, <setivolkylany@gmail.com> wrote:

I need get path to local file in <input type='file'> for ImageField.
Next, transfer path to my view thought Ajax request, update in database and almost  all.

I need will make it manually, for my goals.

May be, anyone known how it make?

I am tried already django-ajaximage, Ajaxfileupload and many other, but it not working correct for me.

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b6f047cb-abd0-41e4-bbcb-600053601144%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD1-9ctRhF_HY73rx8BxGBKEDHEk-c4dK8XvyzfxFa2qFWsTxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment