Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TRAD-12] [Gerar uma SIGNEDURL e retornar na criação do arquivo] #8

Merged
merged 27 commits into from
Oct 29, 2021

Conversation

gabrielmirandaBR
Copy link
Contributor

No description provided.

internal/core/services/file.go Outdated Show resolved Hide resolved
internal/core/services/file.go Show resolved Hide resolved
adapters/config.go Show resolved Hide resolved
internal/storage/storage.go Show resolved Hide resolved
.env-sample Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
internal/core/services/file.go Outdated Show resolved Hide resolved
@SPascareli
Copy link

Eu não entendi o contexto e objetivo dessa tarefa, tem algum lugar explicando isso @gabrielmirandaBR?

@gabrielmirandaBR
Copy link
Contributor Author

gabrielmirandaBR commented Oct 25, 2021

Eu não entendi o contexto e objetivo dessa tarefa, tem algum lugar explicando isso @gabrielmirandaBR?

@SPascareli, estamos nos baseando nesse fluxo:
https://files.slack.com/files-pri/T029XAY4Z-F02J0SK5R33/store_file_import__1_.png.

O objetivo geral da tarefa é o usuário poder fazer o upload sem ter acesso às permissões do storage.

Ao criarmos um arquivo, a API retorna o id e uma singedURL para o usuário realizar o Upload do arquivo. Dessa maneira, não iremos precisar fazer requisição no front, ficando à cargo do storage fazer o upload.

internal/core/services/file.go Outdated Show resolved Hide resolved
internal/storage/storage.go Show resolved Hide resolved
cmd/api/main.go Outdated Show resolved Hide resolved
internal/rest/file.go Outdated Show resolved Hide resolved
internal/rest/file.go Show resolved Hide resolved
@brendalima brendalima merged commit 8447a9e into main Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants