Skip to content

Manager

flowtask.services.files.manager

FileManager.

Works with files, download, upload and delete files over FS using an API.

TODO: Send a data-preview (first 10 rows) of uploaded file TODO: html-template for Uploader preview with "back" button.

FileManager

FileManager(request, *args, **kwargs)

Bases: BaseView

API View for managing Files.

delete async

delete()

DELETe Method. description: Deletes a File (if exists) on Directory tags: - files - File Manager - filesystem - file consumes: - application/json produces: - application/json

get async

get()
GET Method.

description: Managing Files. tags: - File Manager consumes: - application/json produces: - application/json

get_response async

get_response(headers)

Returns a valid Web.Response

head async

head()

HEAD Method. description: Sent response about file exists or not. tags: - files - File Manager - filesystem - file consumes: - application/json produces: - application/json

post async

post()

POST Method. description: upload a file onto repository directory. tags: - files - File Manager - filesystem - file consumes: - application/json produces: - application/json

put async

put()

PUT Method. description: Create a new directory. tags: - files - File Manager - filesystem - file consumes: - application/json produces: - application/json

return_file async

return_file(filename, **kwargs)

Returns a File based on a Stream Response