File upload functionality
Project description
Add basic file upload functionality to your Pyramid app.
Use
Prepare environment.
export VIRTUAL_ENV=~/.virtualenvs/crosscompute virtualenv ${VIRTUAL_ENV} source ${VIRTUAL_ENV}/bin/activate export NODE_PATH=${VIRTUAL_ENV}/lib/node_modules npm install -g browserify uglify-js
Install package.
cd ~/Projects/invisibleroads-uploads python setup.py develop bash refresh.sh
Configure views.
config.include('invisibleroads_uploads')
Call template macro.
{% from 'invisibleroads_uploads:templates/parts.jinja2' import render_upload_button %} {{ render_upload_button(id='xyz-upload', text='Browse for xyz') }}
Add script.
$('#abc-upload').on('uploaded.ir.upload', function(d) { console.log('Uploaded xyz'); console.log(d); });
0.0.2
Ignore multiple clicks on upload button for a few seconds
0.0.1
Add basic upload functionality
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for invisibleroads-uploads-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c85e55b659e76a39547118554f414291ee46929bf54659b806e8f571db0df9e |
|
MD5 | 537d4af94a4852b1490846cb180dee51 |
|
BLAKE2b-256 | 60d2f4785590e244944a57a3e05f0b4cec678bf9e8f95c118f8c21c64bca62d6 |