Handle empty ttl in backend

This commit is contained in:
Devoalda 2023-10-23 15:58:15 +08:00
parent a6faf8720d
commit d0db82fc77
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ function ShareFile() {
if (file) {
const formData = new FormData();
formData.append('file', file);
formData.append('ttl', "2");
formData.append('ttl', "60");
// Send POST request to the backend API using Axios
axios.post('http://127.0.0.1:8000/api/files/', formData)