Share limits
- Linguagem predominante
- Python
- Estrelas
- 46.7k
- Forks
- 1.9k
- Merge médio
- 9d 2h
- PRs com merge (30d)
- 4
Descrição
It would be nice to be able to impose some limits on read-write shares, such as
* max individual file size
* max total size of uploaded files
* max number of files
* option to disable creating/uploading directories
These would be useful if you're sharing the link with people you don't trust _that much_ to not fill up your entire storage.
They could work either globally(/per-volume) or per-share:
* global options only: every share has the same limits (this could also include a max lifetime for shares)
* per-share only: lacks admin control
* both: shares have maximum limits but can be further restricted per-share if needed
An existing alternative would be to have a dedicated volume for shares, but some situations might require more granular control, and it would be slightly inconvenient to have to move files between volumes before/after sharing.
Guia de contribuição
Direção de pesquisa
Examine a lógica de criação de shares e upload de arquivos na base de código, provavelmente nos módulos que lidam com a configuração de shares e a validação de uploads. Entenda como os shares são gerenciados atualmente e onde os limites poderiam ser aplicados. Teste o fluxo criando um share e fazendo upload de arquivos e, em seguida, implemente a validação das opções de tamanho, quantidade e criação de diretórios.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- backend, security
- Tipo de issue
- Funcionalidade
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 45/100