Open deanmarcussen opened 5 years ago
Is anyone started on this or can I make a PR for it?
I haven't, so unless anyone else has started on it, go for it 😄
I noticed the other day that it doesn't use the bootstrap alert modals you did, when deleting items, so if you're up for it, that'd be cool too.
Sure
I noticed the other day that it doesn't use the bootstrap alert modals you did, when deleting items, so if you're up for it, that'd be cool too.
I will have a look to this too
I think this would be a helpful addition. I've had multiple times where a user was trying to upload a file and it just wouldn't upload and didn't give them any indication of why.
We need to find something else that doesn't use JQuery.
@DrewBrasher if you have ideas and time to improve it feel free to work on that, would be great
@sebastienros After looking into issue https://github.com/OrchardCMS/OrchardCore/issues/12842 I'm not sure I understand the original intent of this issue. My comment above was because for me, using the attached media editor, no error was getting displayed at all. After testing with the media library instead of the attached editor I see that in the media library, the file too large error does get displayed.
So fixing the issue with the Upload Vue component mentioned here https://github.com/OrchardCMS/OrchardCore/issues/12842#issuecomment-1330712769 for the attached editor so that it displays the same as the media library would be enough for what I need. I'm not sure though if that would address the original issue here. The uploader does try to upload the file and only shows the error after the server rejects it. So is the issue here that it should show an error before even trying to upload it?
Related to https://github.com/OrchardCMS/OrchardCore/pull/3961 and https://github.com/OrchardCMS/OrchardCore/issues/3263
We could update the media app to use
jquery.fileupload-validate.js
to validate the max file size before trying to upload to the server.Will give a better error to the user, regardless of the hosting option (
InProcess
,OutOfProcess
, IIS, Kestrel etc)