Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

File Upload not working

Open mehdiyahyaoui opened this issue 10 years ago • 13 comments

Your Rocket.Chat version: 0.45.0 Hello we installed 0.45.0 RC on Ubuntu 16 with snap File Upload isn't working - file stuck on 0% on the info bar

do you have a workaround Tested with GridFS and filesystem, removed size and file type restriction

Thx

mehdiyahyaoui avatar Nov 08 '16 13:11 mehdiyahyaoui

Make sure from extension in upload section / image/,audio/,video/webm*,application/zip,application/x-rar-compressed,application/pdf,text/plain,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document


And storage type.is gridfs

Nemra1 avatar Nov 08 '16 15:11 Nemra1

left extension empty to allow all still not working...

mehdiyahyaoui avatar Nov 08 '16 17:11 mehdiyahyaoui

Pm me to help u.. odratop10 # Skype

Nemra1 avatar Nov 08 '16 18:11 Nemra1

Pm me to help u.. odratop10 # Skype Thx @Nemra1 but sorry our corp policy does not allow skype you do Team viewer ?

mehdiyahyaoui avatar Nov 09 '16 08:11 mehdiyahyaoui

I also uploaded files does not work site

bazarnew avatar Nov 09 '16 10:11 bazarnew

We're running 4.5 and have changed the File System from GridFS to File System. In doing so, we encountered the same no access issue from the Windows client and browsers. By changing the Protected uploaded files from True to False in the Admin section, both UI types prompt to download the file. We are running this internally (LAN) only and for a rather small set of users, so this workaround works for the meanwhile. Docs are not sensitive. However, not having the files protected will prevent adoption from the upper echelon. Hope the RC folks get this right soon.

algonza avatar Nov 22 '16 17:11 algonza

Do you solve this problem?

zmx312502865 avatar Dec 14 '16 01:12 zmx312502865

I'm having exactly this issue on Debian 8.7 - package versions:

# nodejs --version
v0.10.29
# npm --version
2.15.9

Rocket.Chat version is 0.52.0, avatar uploads using GridFS work just fine, file uploads don't work at all, stop at 0% uploading. Tried FileSystem, GridFS, turned off Protected mode as suggested in some related threads, all to no avail. File upload into a chat and microphone recordings simply do not work. I also don't get any messages in the server syslog or the Rocket.Chat log in the UI (can't find where Rocket.Chat logs on disk, the nodejs log is empty).

Any suggestions / ideas? :-)

gregharvey avatar Mar 07 '17 11:03 gregharvey

Sorry, disregard, re-posted in active thread #4923.

gregharvey avatar Mar 07 '17 11:03 gregharvey

slingshot/uploadRequest method is not working throwing error "The directive rocketchat-uploads does not seem to exist"

is there any new method to upload file as slingshot has been deprecated

AnshD12 avatar Nov 07 '17 12:11 AnshD12

Same issue currently on multiple systems. Seems normal and universal. Does anyone have this working? Both GridFS and filesystem fail the same.

scottalanmiller avatar Jun 15 '18 18:06 scottalanmiller

I am using rocketchat-server 0.66.3 snap on Ubuntu. I could not get file uploads to work and Chrome dev console was throwing CORB/Cross Site errors and too many references to localhost URLs. So I did the caddy thing:

sudo snap run rocketchat-server.initcaddy
pico /var/snap/rocketchat-server/current/Caddyfile

Edited it to this

http://chat.my.lan
proxy / chat.my.lan:3000 {
  websocket
  transparent
}

Where chat.mylan is how you access the server. and reboot.

And now no more errors and uploads work fine.

drchanas avatar Aug 01 '18 08:08 drchanas

I have the same error,

error :

Aug 22 12:24:23 servername rocketchat: store: 'Uploads' } }
Aug 22 12:24:23 servername rocketchat: #033[34mUploadProxy ➔ debug#033[39m Upload URL: /ufs/GridFS:Uploads/pvcM2TyKRcJBJGxWq?token=Db29aB3B1A&progress=1
Aug 22 12:24:23 servername rocketchat: #033[34mUploadProxy ➔ debug#033[39m Correct instance
Aug 22 12:24:23 servername rocketchat: ufs: cannot write chunk of file "pvcM2TyKRcJBJGxWq" (ENOENT: no such file or directory, open '/tmp/ufs/pvcM2TyKRcJBJGxWq')

Solution : mkdir /tmp/ufs/ && chmod -aw /tmp/ufs

souhaib22 avatar Aug 22 '18 10:08 souhaib22