﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30192	Image upload failing on mobile	Tammo Heeren	nobody	"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.


"	Bug	closed	File uploads/storage	2.1	Normal	needsinfo	ImageField, Mobile, Upload		Unreviewed	0	0	0	0	0	0
