Filemanager icon indicating copy to clipboard operation
Filemanager copied to clipboard

Issue with uploading Video file

Open asaivishal opened this issue 11 years ago • 8 comments

Hi,

Thanks for this awesome Filemanager and I love using it.

I am able to successfully upload pdf and image files through this but I am having issue with uploading video file.

Getting below error while trying to upload video: Uncaught TypeError: Cannot read property 'Code' of null f.upload.multiple.a.unbind.click.a.dropzone.success require.register.Emitter.emit require.register.Dropzone._finished (anonymous function)

asaivishal avatar Jun 16 '15 02:06 asaivishal

error

asaivishal avatar Jun 16 '15 02:06 asaivishal

This error is triggered by dropzone. Are you using Chrome ? Could you try with another browser ?

By the way, I tried to upload a video on the onlinde demo : http://fm.linea21.com/

And it works well. The file is name chrome_japan. You can download it and try again on your FM version.

See also :

  • https://github.com/enyo/dropzone/issues/444
  • https://github.com/enyo/dropzone/issues/285

simogeo avatar Jun 16 '15 07:06 simogeo

Thanks for the reply and online demo.

I downloaded and uploaded chrome_japan video and it worked fine. It uploads the .ogv file without any issue. The file I am trying to upload is .mp4 file and when I tried to upload the same file on online demo, it threw the same error as I as getting on my FM implementation.

It throws the same error while uploading .wmv file as well.

Thanks in advance.

asaivishal avatar Jun 17 '15 01:06 asaivishal

What is the size of your mp4 file and what is the limit set in config file ? see fileSizeLimit

simogeo avatar Jun 17 '15 06:06 simogeo

Hi,

I am uploading 10MB file and fileSizeLimit is 50.

It fails on other browsers too.

Thanks.

asaivishal avatar Jun 18 '15 01:06 asaivishal

I am uploading 10MB file and fileSizeLimit is 50.

So, it should be ok. You have to know that fileSizeLimit value can be overwritten if upload_max_filesize and post_max_size allow less than given values. So, you could have a look on that side.

For debugging, you can also try to set :

"upload": {
        "multiple": false,

It will remove dropzone - you may have another and explicit error message ...! ? Please let me know

If you did not find the cause, you can send / share the video for me to test directly.

Note : Regarding wmv file, be sure it is allowed by your config file in uploadRestrictions section. It is not by default.

simogeo avatar Jun 18 '15 07:06 simogeo

So ?

simogeo avatar Jun 22 '15 14:06 simogeo

Hey thank you so much for clarifying about upload_max_size and post_max_size.

my post_max_size was less than filesize I was using. By increasing that limit it worked.

Thanks you so much again and sorry for delay in replying as I got carried away by other work.

Cheers.

asaivishal avatar Jun 23 '15 03:06 asaivishal