Hi Syncfusion Team,
I'd just like to report something weird in the file upload modal for the File Manager component.
The upload modal that appears on our end when we successfully upload a file looks like the one below:
There are two things that are weird here.
<SfFileManager @ref="fm"
TValue="FileManagerDirectoryContent"
AllowDragAndDrop="true"
ShowThumbnail="false"
View="ViewType.Details"
Path="@currentPath">
<FileManagerEvents TValue="FileManagerDirectoryContent"
UploadListCreated="BeforeUpload"
ToolbarCreated="OnToolbarCreated"
ToolbarItemClicked="OnToolbarItemClicked"
OnSend="OnSend"
OnSuccess="OnSuccess"
OnFileOpen="OnFileOpen"></FileManagerEvents>
<FileManagerAjaxSettings Url="/api/FileManager/FileOperations"
DownloadUrl="/api/FileManager/Download"
UploadUrl="/api/FileManager/Upload">
</FileManagerAjaxSettings>
<FileManagerToolbarSettings Items="@FileManagerToolbarItems"></FileManagerToolbarSettings>
<FileManagerNavigationPaneSettings Visible="false"></FileManagerNavigationPaneSettings>
</SfFileManager>
I think what we wanted to achieve here is to remove the trash button from our file upload modal similar to the one in your sample? How can we achieve that?
Thanks!
.e-fe-popup .e-upload .e-icons.e-file-delete-btn {
display: none;
} |
Hi Indumathy,
The CSS workaround that you have provided has worked to remove the trash icon from the upload modal of the file manager component. Thank you for that!
I am indeed using the UploadListCreated event to do a certain action. I haven't tested if removing that action will also remove the trash icon from the modal but since the CSS workaround worked, looks like that won't be necessary anymore.
Many thanks for your response!
Best regards,
Denzel