:mod:`storage.views` ==================== .. py:module:: storage.views Module Contents --------------- .. function:: download(request) .. function:: delete(request) A DELETE request. If found, deletes a file with the corresponding UUID from the servers filesystem. .. function:: upload(request) .. function:: handle_delete(request,uuid) Handles a filesystem delete based on UUID. .. function:: handle_upload(request,attrs) Handle a chunked or non-chunked upload. See example code: https://github.com/FineUploader/server-examples/blob/master/python/flask-fine-uploader/app.py .. function:: save_chunk(fs,path) Save an uploaded chunk. Chunks are stored in chunks/ .. function:: combine_chunks(total_parts,source_folder,dest) Combine a chunked file into a whole file again. Goes through each part, in order, and appends that part's bytes to another destination file. Chunks are stored in chunks/