Currently, the default Django FileField upload method with the application we host on app engine using Google Cloud SQL returns the following error:

```
OSError
[Errno 38] Function not implemented: '/base/data/home/apps/s~app/attachment-1.360717349796013945/media'

```

which is probably due to file writing being restricted in app engine and mkdir not working stated in Django debug mode:

```
/base/python27_runtime/python27_dist/lib/python2.7/os.py in makedirs
makedirs(head, mode)
    except OSError, e:
        # be happy if someone already created the path
        if e.errno != errno.EEXIST:
            raise
    if tail == curdir:           # xxx/newdir/. exists if xxx/newdir exists
        return
mkdir(name, mode) ...

```

Therefore, I attempted to install [django-filetransfer](http://www.allbuttonspressed.com/projects/django-filetransfers) and the same error persists on Appengine. 

Django setup:

**Models**

```
class OrderItemAttachmentForm(ModelForm):
class Meta:
    model = OrderItemAttachment
    exclude = ('item',)
def __init__(self, *args, **kwargs):
    super(OrderItemAttachmentForm, self).__init__(*args, **kwargs)

```

**Views**

```
def RFO(request):
    view_url = reverse('app.views.RFO')
    elif 'saveLine' in request.POST:
        order_attachment_form = OrderItemAttachmentForm(request.POST,request.FILES)
        if order_attachment_form.is_valid():
            order_attachment = order_attachment_form.save()
    upload_url, upload_data = prepare_upload(request, view_url)

```

**Template**

```
{% load filetransfers %}
<form id="requestItemForm" name="requestItemSubmit" method="post" enctype="multipart/form-data" action="{{ upload_url }}">{% csrf_token %}{% render_upload_data upload_data %}
<div class="lineAttach">
<label for="id_attachment">Upload Attachment</label>
{{order_attachment_form.attachment}}
</div>
<button type="submit" id="saveLine" name="saveLine" class="btn grey doLoad right" value="Save Line Item">Save Line Item</button>

```

I have contemplated using [Blobstore python API](https://developers.google.com/appengine/docs/python/blobstore/) to store files as a blob or utilize Google Cloud Storage but do not know how to integrate it into Django models. Any help would be appreciated, thanks!