8 Apr #1

Dropzone allows movies with Imgur

Advanced subscriber
Not live with Dropzone 1.2 yet, still testing. With Imgur upload enabled, I'm able to upload movies (*.mp4). Which we definitely don't want, nor are there any Imgur share links produced. I note file types unsupported by Imgur default to the classic attach system. Any way to restrict file types even if Imgur accepts them?

PS: Thanks for your efforts with both these products and your other work. Well done sir.

cheers...
  • 1
  • 2
Shade 8 Apr
#2
Quite odd, as MyDropzone should send to Imgur only the following mimetypes: image/png, image/jpg, image/jpeg and image/gif.

I will test and get back at you ASAP.
Shade 8 Apr
#3
I cannot reproduce the issue. Can you please send me your attachment types configuration, and your board URL with a testing account?
nixer55 8 Apr
#4
Can't provide a URL - this is a test system on a private network, with data restored from a recent backup. MyBB version is 1822. But did manage some screenshots:

Attachment types:
https://i.imgur.com/2HzLyIB.png

Attaching an mp4:
https://i.imgur.com/AQMhXID.png

Attaching an ods (rejected as expected):
https://i.imgur.com/AT6GQrB.png

If you can't reproduce, will probably still go live on a trial basis. If the issue persists, will revisit this thread. No problem supplying test credentials to the live board at that time.

cheers...
Shade 8 Apr
#5
Quite odd. If I try to upload a mp4 file, it is rejected because it's not allowed. Are you sure the mimetype is video/mp4?
nixer55 8 Apr
#6
Just following up on this issue. Tried a much larger mp4, and Imgur rejected it. Think I read their service limits video to 60 odd seconds, and see 256 MB as the limit on the error. The earlier mp4 I tried was small - 8.5 MB. The large over 400 MB. But seems the rejection was Imgur, not Dropzone.

https://i.imgur.com/0dMYVAd.png

Not a show stopper, but doesn't sound like expected behaviour? Particularly in light of the upload succeeding for smaller videos but nothing usable on the MyBB end? Bound to cause some confusion, not to mention needless consumption of Imgur storage - lol.

Pic of mp4 I dropped showing mime type:

https://i.imgur.com/V8b1nhl.png

cheers...
Shade 8 Apr
#7
The rejection is actually by your server. I believe you are not getting the actual error, but the 8.5MB one is being rejected as well. Can you open up your browser console, upload the 8.5MB video, and look for JS issues?
nixer55 8 Apr
#8
I'm no developer Shade, so not sure what I'm looking for. Here's what the console looks like:

https://i.imgur.com/UG3CBcS.png

And I can delete the attachment (small mp4) from the attachment box.

cheers...
Shade 8 Apr
#9
Open up the network tab, upload the video and take a screenshot. It shouldn't call for Imgur.
nixer55 8 Apr
#10
Don't see any call to Imgur. Expanded newreply.php where it references dropzone:

https://i.imgur.com/xOKWt1f.png

If the mp4 is not going to Imgur, suspect we can work around it. But where are the file size errors on the large mp4's coming from? Why not the smaller mp4's? The attachment appears to succeed for the smaller file, but doesn't? These are questions I'll have to answer - lol.

cheers...