Skip to main content
Help us improve Python packaging – donate today!

File upload handler for SwampDragon

Project Description

SwampDragon fileupload

File upload handler for SwampDragon

# Installation
```pip install swampdragon-fileupload```

Add ```swampdragon_upload``` to ```INSTALLED_APPS```

# Usage

Create a router and extend ```FileUploadHandler```

class FileUpload(FileUploadHandler):
route_name = '_sdfileupload'

In the above example, the route is set to _sdfileupload.

File post requests should be done to ```window.swampDragon.url + '/_sdfileupload/'```

The data returned by the post request will fit the file deserializer.

To enable Origin header check, set ```origin_check = True```

class FileUpload(FileUploadHandler):
route_name = '_sdfileupload'
origin_check = True

# Notes

If you are using NGINX and have ```origin_check = True``` you need to set ```proxy_set_header Host $http_host;```
in your NGINX config:

server {
location / {
proxy_set_header Host $http_host;

Release history Release notifications

This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
SwampDragon-fileupload-0.1.2.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None Aug 24, 2014 (6.6 kB) Copy SHA256 hash SHA256 Source None Aug 24, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page