Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS-12.x] Error uploading audio or video (invalid file type) #2751

Open
adrianovieira opened this issue Dec 29, 2020 · 12 comments
Open

[iOS-12.x] Error uploading audio or video (invalid file type) #2751

adrianovieira opened this issue Dec 29, 2020 · 12 comments
Labels

Comments

@adrianovieira
Copy link

Description:

I am using an iPhone (iOS-12.5).
And I am trying to record a short video and/or an audio to send to any chat channel.

Although I do can send audio/video via RKC-electron destop app,
I always get an error message as an "invalid file type" when trying via iphone.

Environment Information:

  • Rocket.Chat Server Version: 3.3.0
  • Rocket.Chat App Version: 4.13.0
  • Device Name: iPhone
  • OS Version: 12.5

Steps to reproduce:

  1. any channel
  2. record a video or audio only (via rocketchat app own features/buttons)
  3. try to send it

Expected behavior:

rocketchat app recorded video or audio be sent to any channel.

Actual behavior:

always get an "invalid file type" error.

audio-invalid-file-type

Additional context:

@diegolmello
Copy link
Member

What's your file upload setting on admin?

@adrianovieira
Copy link
Author

Hi!

image/*,
audio/*,
video/*,
application/zip,
application/x-rar-compressed,
application/pdf,
text/plain,
text/csv,
application/ms-powerpoint,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
application/vnd.openxmlformats-officedocument.presentationml.presentation,
application/vnd.oasis.opendocument.spreadsheet,
application/vnd.ms-excel,
application/msword

@diegolmello
Copy link
Member

Ok. Can you try leaving it blank just to test if it works?
image

@adrianovieira
Copy link
Author

adrianovieira commented Jan 4, 2021

Ok. I can for a quick test!

But what if we need to define what kind files is allowed for upload?

@adrianovieira
Copy link
Author

Ok. Can you try leaving it blank just to test if it works?
image

It works when we try to send voice messages (via rocket app itself).

But it isn't work when we try to send a video (via rocket app -> "take a video") - longer than 15seconds

IMG_8563 PNG

@diegolmello
Copy link
Member

Oh, that might be a collateral effect of an already fixed issue, but not released.
I'm releasing 4.13.1 with it now.
#2738

Just as test/workaround, can you try closing the app and then send that video?

@adrianovieira
Copy link
Author

adrianovieira commented Jan 4, 2021

But I'm not sure if it is related to a multiple uploads!

I tried many times in many ways to upload a video using that "take a video" feature (longer than 15s), but it isn't work.

@adrianovieira
Copy link
Author

adrianovieira commented Jan 4, 2021

This is for your notes...

Just trying to upload only one file which was took by "app take a video" (around 18 seconds duration only), but it doesn't work.

PS: that [X] button doesn't work either

IMG_8565 PNG

@diegolmello
Copy link
Member

Just to isolate the issue, can you try that on https://open.rocket.chat?
I just sent a video with 1 min and it worked.
Thanks!

@adrianovieira
Copy link
Author

adrianovieira commented Jan 7, 2021

Hey!
I just updated RocketChat App to 4.13.1 on my ios phone.

And now it works if and only if we set "file upload->Accepted Media Types" as blank.

So, are there anything which we can do on our side to fix it?

Are there a misconfiguration when we use these bellow data on that field?

Hi!

image/*,
audio/*,
video/*,
application/zip,
application/x-rar-compressed,
application/pdf,
text/plain,
text/csv,
application/ms-powerpoint,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
application/vnd.openxmlformats-officedocument.presentationml.presentation,
application/vnd.oasis.opendocument.spreadsheet,
application/vnd.ms-excel,
application/msword

@diegolmello
Copy link
Member

Awesome!
I'm assigning this issue as a bug, because it should work apparently.
Maybe we're missing something like it doesn't support \n on the config, etc.
If you leave only audio/* on the setting. Does it work?
What about audio/*,image/*?
It's probably some misconfiguration like that.

@adrianovieira
Copy link
Author

On our rocket chat server, this settings is an in line entry, e.g.:

image/*, audio/*, video/*, application/zip, application/x-rar-compressed, application/pdf, text/plain, text/csv, application/ms-powerpoint, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.oasis.opendocument.spreadsheet, application/vnd.ms-excel, application/msword

I described it like this just for better reading

Hi!

image/*,
audio/*,
video/*,
application/zip,
application/x-rar-compressed,
application/pdf,
text/plain,
text/csv,
application/ms-powerpoint,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
application/vnd.openxmlformats-officedocument.presentationml.presentation,
application/vnd.oasis.opendocument.spreadsheet,
application/vnd.ms-excel,
application/msword

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants