Nate's picture

Try to delete a file in canvas lms using the Files menu on left. Doesn't work. Anyone know of a fix? 

 

Thanks!!

 

 

Forum: 
Jeremy Davis's picture

But I also don't use it, so it's probably no great surprise! :)

Out of interest can you explain to me how I might be able to (quickly and simply) reproduce this issue and I'll see if I can. And if i can reproduce it I'll lodge an issue (bug) - or feel free to do that yourself...

(assuming that I can reproduce it) I can also look to see if there is a quick workaround and we can fix it in TKL (at least for the next release...)

Nate's picture

they way you can reproduce it .

Create a course. then on left you will see files menu. drag and drop a file to a folder, then try to delete it.

You can create folders and files but cannot delete.

I know its a permission problem, i chmod the whole canvas directory to 777 and that fixed it. But it would be really nice to know how to fix it with the correct permissions.

thanks for looking at it!

 

 

Benjamin's picture

I was having the same issue here, looking at the error reports it's giving me a "No such file or directory"

The path it gives is /var/www/canvas/tmp/attachment_fu/"filename" of course looking on the server there are no files in here so it is correct that there is "No such file or directory"

 I know files are stored at /var/www/canvas/tmp/files so I'm guessing somehow the delete command is getting a wrong file reference, though I haven't figured out how to fix this or if that even is the issue.

If anyone has any ideas on this that would be great.

Jeremy Davis's picture

That would be like this:

chmod -R www-data:www-data /var/www/canvas/tmp

Add new comment