diff --git a/public/assets/svgs/file_upload.svg b/public/assets/svgs/file_upload.svg
deleted file mode 100644
index f11a922f..00000000
--- a/public/assets/svgs/file_upload.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/resources/scripts/components/server/files/FileManagerBreadcrumbs.tsx b/resources/scripts/components/server/files/FileManagerBreadcrumbs.tsx
index 5ec1efa8..1cdcb05a 100644
--- a/resources/scripts/components/server/files/FileManagerBreadcrumbs.tsx
+++ b/resources/scripts/components/server/files/FileManagerBreadcrumbs.tsx
@@ -45,7 +45,7 @@ export default ({ withinFileEditor, isNewFile }: Props) => {
return (
- {(files && files.length && !params?.action) &&
+ {(files && files.length > 0 && !params?.action) &&
{
const [ loading, setLoading ] = useState(false);
const { mutate } = useFileManagerSwr();
const { clearFlashes, clearAndAddHttpError } = useFlash();
+ const directory = ServerContext.useStoreState(state => state.files.directory);
useEventListener('dragenter', e => {
e.stopPropagation();
@@ -60,7 +62,7 @@ export default () => {
setLoading(true);
clearFlashes('files');
getFileUploadUrl(uuid)
- .then(url => axios.post(url, form, {
+ .then(url => axios.post(`${url}&directory=${directory}`, form, {
headers: {
'Content-Type': 'multipart/form-data',
},