Update src/api/file/file.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -44,7 +44,7 @@ export const checkHash = async (hash: string) => {
|
|||||||
* @param file
|
* @param file
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export const uploadFile = async (file: File,hash: string) => {
|
export const uploadFile = async (file: File, hash: string) => {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("file", file);
|
formData.append("file", file);
|
||||||
formData.append("hash", hash);
|
formData.append("hash", hash);
|
||||||
|
|||||||
Reference in New Issue
Block a user