Dear Support,
I have created a custom class that inherits from FileBrowserContentProvider and have implemented all the neccesary methods. I sometimes require to reject an uploaded file in the StoreFile method due to some business logic but was not able to figure how that could be implemented. Returning a non-empty string and throwing an exception did not work well. Since the class inherited from FileBrowserContentProvider has no access to the Page-derived class, I am not able to add an Error to the page.
Could you please help in directing me to a neat solution to my problem?
Thanks in advance,
Omtara
I have created a custom class that inherits from FileBrowserContentProvider and have implemented all the neccesary methods. I sometimes require to reject an uploaded file in the StoreFile method due to some business logic but was not able to figure how that could be implemented. Returning a non-empty string and throwing an exception did not work well. Since the class inherited from FileBrowserContentProvider has no access to the Page-derived class, I am not able to add an Error to the page.
Could you please help in directing me to a neat solution to my problem?
Thanks in advance,
Omtara