#30192: Image upload failing on mobile -------------------------------------+------------------------------------- Reporter: | Owner: nobody TammoHeeren | Type: | Status: new Uncategorized | Component: | Version: 2.1 Uncategorized | Keywords: ImageField, Mobile, Severity: Normal | Upload Triage Stage: | Has patch: 0 Unreviewed | Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- I set up an Item model (simplified here):
{{{ class Item(models.Model): image = models.ImageField( blank=True, null=True, upload_to=user_directory_path ) }}} with the following view class {{{ class Create(generic.CreateView): template_name = 'items/create.html' model = Item fields = [ 'image', ] }}} and use the following template: {{{ {% extends "base.html" %} {% block title %} New Item {% endblock %} {% block content %} <form method="post" enctype="multipart/form-data" data-ajax="false"> {% csrf_token %} {{ form.as_p }} <input type="submit" value="Save"> </form> {% endblock %} }}} Image upload works fine using Desktop but fails using Mobile, seemingly without error message. I also used {{{ FILE_UPLOAD_MAX_MEMORY_SIZE = 10 * 1024 * 1024 }}} in setting.py, but the behavior continues. It surely must be possible to upload files from mobile, but I have a hard time finding out what is wrong here. -- Ticket URL: <https://code.djangoproject.com/ticket/30192> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/054.87f52b04a829299492f3724b4b281664%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.