Skip to main content

file import via CGI

Project description

Author Robert Sudwarts

For uploading files via web interface.

Basic scope of the problem

Functionality for:

  • uploading large files using buffered chunks

  • scaling down large images

Package Components

  1. upload.writefile() accepts a FieldStorage instance and writes in buffered chunks to the specified directory.

  2. Image files can be written ‘as is’ or scaled to a specified size and [at the same time] as a thumbnail image of a specified size.

  3. A Thumb class to check for existence of thumbnail/create/delete etc

Change Log

  • v.0.1.5 when scaling image to thumbnail image is given file extension .jpg

  • v.0.1.4 added “Pillow>=2.0.0” as a dependency to setup.py.

    This package is required instead of PIL

  • v.0.1.3 added conditional ‘scale’ to writefile() so that this package can be used for all types of files (not just images)

Project details


Download files

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

Source Distribution

cgiFileUpload-0.1.5dev.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file cgiFileUpload-0.1.5dev.tar.gz.

File metadata

File hashes

Hashes for cgiFileUpload-0.1.5dev.tar.gz
Algorithm Hash digest
SHA256 5cfce12b1defb059ed3153899f40f76a556c1b896161356a97d81490347bf09f
MD5 6ec6856d2f70ae34644eb46799b32ee0
BLAKE2b-256 9bc1583e36a867b6a9635f10da3c520f6c2cc14e3bd0d0e186fbec2b2bfe6f87

See more details on using hashes here.

Supported by

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