3

Is there any way to show a warning message to user while uploading large multimedia file in tridion. I want to show Warning popup to the user, once he select the Multimedia items and if it is greator than the size configured.

1
  • I agree this is a common requirement. Maybe it would be possible to make the MM Link field read-only, and implement your own custom url popup to upload the MM comp. You would essentially be replacing the Tridion uploader. And, could then use HTML 5 APIs, etc as Bart suggests.
    – robrtc
    Apr 15, 2014 at 9:20

2 Answers 2

3

Although it is possible to write a handler for the component save event, this would probably be too late. A better approach would be to write a GUI extension that checks the size of the file when the user selects it.

1
  • 1
    with a UI extension you will still need to upload the file, unless you use something like jQuery in combination with the HTML5 File Api specification, see stackoverflow.com/questions/1601455/… since by default JavaScript cannot access the filesystem. Apr 15, 2014 at 8:12
1

You can write an event that checks the size of the multimedia component on save.

Then throw a message to the event system ?

2
  • This still requires you to upload the complete file, and through the event system you can't show warnings, only errors which means you cannot continue with the large file afterwards (it has already been discarded as your event handler has thrown an exception and the save event has been cancelled). Apr 15, 2014 at 8:16
  • If we throw exception then current item would not be save. my objective is only to warn user with an message. Apr 23, 2014 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.