forked from scieloorg/opac_ssm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tk390] Tratamento de upload e download de arquivo grandes
Criação de upload_file Criação de download_file Alteração em add_asset e update_asset Se o servidor receber request.large_file_path em add_asset ou update_asset, registrará no SSM o conteúdo deste arquivo, ignorando o arquivo proveniente de request.file. Alteração em get_asset Se executar get_asset e o servidor identificar que asset.file é grande, retornará asset.file='' e asset.large_file_path = asset.file.path No lado do cliente (opac_ssm_api), para arquivos grandes: - a execução de add_asset e update_asset em duas etpas: primeiramente executando opac_ssm.upload_file que retorna o nome do arquivo grande e depois executando add_asset incluindo asset.large_file_path. - a execução de get_asset também é em duas etapas: primeiramente executando opac_ssm.get_asset, depois executando opac_ssm.download_file, usando o arquivo identificado como asset.large_file_path. Relacionado com scieloorg/opac_ssm_api#185 Fixes scieloorg#390
- Loading branch information
1 parent
e578762
commit 755f240
Showing
6 changed files
with
515 additions
and
678 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.