You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to the built-in Image plugin, the Media Viewers plugins should support checking the file size of the source file, allowing administrators to configure a maximum file size beyond which the viewer will not be used.
The text was updated successfully, but these errors were encountered:
var srcMaxSize = this.attributes.srcMaxSize;
if (!this.attributes.src && srcMaxSize.match(/^\d+$/) && this.wp.options.size > parseInt(srcMaxSize))
{
// File is too big
}
Similar to the built-in
Image
plugin, the Media Viewers plugins should support checking the file size of the source file, allowing administrators to configure a maximum file size beyond which the viewer will not be used.The text was updated successfully, but these errors were encountered: