Handle empty ttl in backend
This commit is contained in:
parent
a6faf8720d
commit
d0db82fc77
|
@ -14,7 +14,7 @@ function ShareFile() {
|
||||||
if (file) {
|
if (file) {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('file', file);
|
formData.append('file', file);
|
||||||
formData.append('ttl', "2");
|
formData.append('ttl', "60");
|
||||||
|
|
||||||
// Send POST request to the backend API using Axios
|
// Send POST request to the backend API using Axios
|
||||||
axios.post('http://127.0.0.1:8000/api/files/', formData)
|
axios.post('http://127.0.0.1:8000/api/files/', formData)
|
||||||
|
|
Loading…
Reference in New Issue