Replies: 2 comments 5 replies
-
I'd say that throwing an exception when the file fails to upload would be a good change, yes (since it's clearly an error). But can you find out why the files fail to upload? |
Beta Was this translation helpful? Give feedback.
5 replies
-
fixed by #18263 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having a problem these days with the
MediaField
using theAttached
editor. Sometimes files fail to upload, and the code logs an error in the logging file..OrchardCore/src/OrchardCore.Modules/OrchardCore.Media/Services/AttachedMediaFieldFileService.cs
Lines 98 to 102 in d3b2e0f
I would like to change this behavior and return an
AggregateException
that can contains one or moreFileNotFoundException
. I could then intercept this in MediaFieldDisplayDriver and return a model error that asks the user to re-upload the file(s).Would this be an acceptable change?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions