The above error is displayed if all persmissions are granted for Fileshare accept 'download files'. My requirement is for users to upload files, but not download files.

Thanks

Mike

Comments

pkrasko’s picture

That is a pretty specific use case. I would probably put that under feature requests...

JamieR’s picture

It's actually not a bug - it's just a cryptic message. I suppose what it should say is access denied or something similar... send me a patch. You'll want to edit the .js file. Just search for jah error.... you'll want to just replace the message text if the response is "Forbidden"

Thanks!

pkrasko’s picture

Forbidden is what is returned from the server, so we would like to keep that error msg [it's pretty common].

I would suggest changing 'jah error:' to just 'Error:'. Not many people out there know what jah is or even really care.

Line 93 in fileshare.js [HEAD version] needs to be changed from:
document.getElementById(tag).innerHTML = "jah error:\n" +

TO

document.getElementById(tag).innerHTML = "Error:\n" +

You can do a find and replace if you're not working off HEAD.

-phil