Skip to main content

tiny wsgi file-uploader - multiple or single selections, progress-per-file, unlimited size

Project description

a tiny cut from gp.fileupload-1.1, doing the actual job, with fixes and extensions.
  • as HTML form, or jquery with multiple progress-per-upload;

  • as single file and multiple file selections (HTML5)

  • ok with UTF8 or cp1251 encoded non-ascii filenames

  • ok with any file-sizes - doesn’t store anything in memory

  • uses os.path.getsize() to measure actual progress. hacks cgi.FieldStorage to handle tiny files (<1000 bytes)

usage:
  • in sklad.wsgi, application(), change the head/tail for needed html (default is both form and jquery).

  • change FieldStorage.PATH to where files should be stored (relative)

  • the relevant client file is jquery.fileupload.js, to change progress-representation.

  • tweak .htaccess or in other way make sklad.wsgi accessible to apache (AddHandler wsgi-script .wsgi)

  • for logging, uncomment fdebug and may change tpath

  • hack it all as u like

notes for python version 2.5 and below:
  • standard-lib cgi.py does not work - use the hacked/backported 25/cgi.py (put in same dir or fix imports in sklad.wsgi)

  • there’s no json module in standard-lib; install simple_json instead

have fun www.svilendobrev.com

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

sklad-0.1.tar.gz (31.0 kB view details)

Uploaded Source

File details

Details for the file sklad-0.1.tar.gz.

File metadata

  • Download URL: sklad-0.1.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sklad-0.1.tar.gz
Algorithm Hash digest
SHA256 8c20552eb0fc3b0c56ff4f85f09277c483843e5390df28fcc5d28ef9052e3794
MD5 c4d78038514f26c2639ea833acaa3f01
BLAKE2b-256 fc8670ec21242c926f73c60553a96aa9eb503f9af84f9545f02aa64392f6d1e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page