ankitpokhrel / ankitpokhrel/tus-php

Sending a file again appends file to existing. Result is data corruption

Aperta
#444 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
1.5k
Fork
220
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

> **Note:** Please report any security issues directly to hello [at] ankit.pl

**Describe the bug**
A clear and concise description of what the bug is.

If I send a file to tus-php, and then send the same file again, it appends the a second copy of the file to the end of the first uploaded copy.

**To Reproduce**
Steps to reproduce the behavior:
1. Upload a file, EG: "myfile.txt".
2. Upload the same file again.
3. In my upload folder, "myfile.txt" is now 2x as long as original.

**Expected behavior**
A clear and concise description of what you expected to happen.
At step 2, I should receive a link to the file instead of a "starting at 0" response.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.