Skip to main content
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;
}
}

Metadata

Release files for SwampDragon-fileupload 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for SwampDragon-fileupload 0.1.2
File Size Uploaded Provenance Actions
SwampDragon-fileupload-0.1.2.zip 6.6 kB Without provenance Details for SwampDragon-fileupload-0.1.2.zip
SwampDragon-fileupload-0.1.2.tar.gz 2.9 kB Without provenance Details for SwampDragon-fileupload-0.1.2.tar.gz

Release files / SwampDragon-fileupload-0.1.2.zip

Download URL SwampDragon-fileupload-0.1.2.zip
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f0bf676580b4ef1b3c6a32ae7c86126624a51f1898608bd41f23123e9183634d
BLAKE2b-256 checksum
How to use checksums
bb2a384468b35217a7ae9a1ee39d3d1c5cd74d29eb30addcbd10e88645d7ebb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / SwampDragon-fileupload-0.1.2.tar.gz

Download URL SwampDragon-fileupload-0.1.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9e47fe9d4d3562461e6fd2b7021c0c3842dfc1e8121dfdda621a4d907124239b
BLAKE2b-256 checksum
How to use checksums
4149eab663512b35ede4a9cea83f4049506e60eafa04304be2a8bc3fbe7fab8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for SwampDragon-fileupload 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page