The download method must return a file descriptor.
It should return the file descriptor instead of file content as string. This implementation does not consume RAM Memory, so it is safer to download big files. When you call file_descriptor.close, it will remove the file from tmp folder automatically.
Showing
Please register or sign in to comment