Using VS 2019, NetCore 5 and Syncfusion Blazor 19.2.0.55
FileManager works fine on my local developer machine but once I published it on MS Azure on IIS 10 it shows the pictures only on first time it is loaded. After that it is all blank. Please see atached project. On Home page, please click the "Open" button to show the File Manager and you can see that it may be closed and opened any number of times. However, once it is published it can only be opened one time and once closed when reopend it will not show the folders anymore, unless I stop and restart the site on IIS 10 server.
You can see this on this link here
Hi Indhumathy L
Thanks for your reply; this issue caught me by surprise and now I cannot delivery the product to my client. I understand these things happen and is no one fault and also that you need more time, but please let me know asap when you find a solution or a work around.
Thanks again
Ben Junior
|
<SfDialog Width=800 Height=800 ShowCloseIcon="true" IsModal="true" AllowDragging="true" EnableResize="true">
<DialogTemplates>
<Content>
<SfFileManager @ref="filemanager" TValue="FileManagerDirectoryContent" ShowFileExtension="false">
<FileManagerAjaxSettings Url=@($"{NavigationManager.BaseUri}api/SampleData/FileOperations")
</FileManagerAjaxSettings>
<FileManagerUploadSettings AllowedExtensions=".jpg,.jpeg,.gif,.png"></FileManagerUploadSettings>
</SfFileManager>
</Content>
</DialogTemplates>
<DialogEvents Opened="@AfterOpen" />
<DialogButtons>
<DialogButton Content="Close" IsPrimary="false" OnClick="(() => { ShowImageUploadModal = false; })" />
</DialogButtons>
</SfDialog>
}
}
@code
{
SfFileManager<FileManagerDirectoryContent> filemanager;
...
public void AfterOpen()
{
filemanager.RefreshLayoutAsync();
}
} |
Hi Indhumathy L
THanks so much for your solution. It works perfectly now.
Ben Junior.