mirror of
https://github.com/directus/directus.git
synced 2026-01-24 23:27:57 -05:00
Merge pull request #764 from dimitrov-adrian/fix-file-upload-null
Fix file upload
This commit is contained in:
@@ -28,7 +28,7 @@ export default async function uploadFile(
|
||||
try {
|
||||
let response = null;
|
||||
|
||||
if (options?.fileId !== undefined) {
|
||||
if (options?.fileId) {
|
||||
response = await api.patch(`/files/${options.fileId}`, formData, {
|
||||
onUploadProgress,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user