Getting permission-denied.txt when download only in mobile browser

Viewing 15 posts - 1 through 15 (of 15 total)
#149956

Alberto
Participant

CONTEXT
we have a website with a directory for members and non-members.
In some categories, we include files for members and non-members and this is where we are having a very strange problem

TROUBLE
Getting permission-denied.txt when tried to download but it happens in the mobile version, not in the desktop version. In Desktop Version files are downloaded following the role permissions system.

DETAILS
We have two users. User A (member) and user B (non-member) for testing. When we connect from user A and try to download a file with access for members we can log in, however, when downloading we get a text file permission-denied.txt. The category has members’ access. Otherwise also. The only way to make everything work in mobile is to set access for all visitors and in this case, it is of little use because what we want is that members can download the files for member and non-member roles and non-members can download files for non-members only.

#149984

Sidratul Sohrat
Moderator

Can you please clear your site cache? Also, there can be conflict with another plugin, can you please enable/disable other plugins for checking, you may also switch theme to another for checking, please let me know then

Thanks

#150168

Alberto
Participant

Hello, I tried with all your advices but it doesnt work.

I have changed template and also disabled all the plugins existing installed. The thing is the plugin is working fine in desktop view also in mobile view (In a desktop device with normal browser) not the same with our cordova app based (In mobile) here is where we are experience problems and getting that file permission issue. If i try with a normal browser through mobile device it is working properly. The issue comes with app cordova based.

If needed for more information, please let me know, ill be glad to help you in everything as i can.

thanks in advance!

#150178

Sidratul Sohrat
Moderator

Please share your temporary admin login info in a private reply. Also, user A/B login info to check the issue.

Thanks

#150223

Alberto
Participant
This reply has been marked as private.
#150305

Shafayet
Moderator

Hi,
I’ve tested …/download/00-constitucion-espanola-solo-socios/ from my pc and phone using user info for nosocio and it worked fine in both cases. Screenshot from my phone:

IMG_1CB81E6BBC04-1

#150312

Alberto
Participant
This reply has been marked as private.
#150315

Shafayet
Moderator

That is probably due to an issue with the APP, probably related to user session handling.

#150317

Alberto
Participant

Hello Shafayet,

The thing is we are not handling sessions. The app is just a cordova based app with the wordpress embebed in a iframe.

anything else that you need, please let me know.

Thanks and best regards,

  • This reply was modified 3 years ago by Alberto.
#150319

Shafayet
Moderator

Not exactly sure, your APP needs to be able to handle the WordPress login system properly with proper cookie support. Otherwise, the download will not work, as if wpdm can’t detect the logged-in user ( using WordPress’s native functions ), the download link will not work.

#150453

Alberto
Participant

Hello Shafayet,

Thanks for your reply,

I think i found the bug.

In my mobile app, when i click on download file button is being opened in browser out of the app, and browser has not logged in so it detect and restrict permissions for the file. Is there any option that i can use to download it from the app i think now it is using a target _blank and it should use target _self or something

#150455

Shafayet
Moderator

Please give me the URL you trying to download from.

#150458

Alberto
Participant
This reply has been marked as private.
#150561

Alberto
Participant

is there any way that i can use to open download in _self target instead of _blank?

#150847

Humayon
Moderator

Hello Alberto,
Please try this setting. Hopefully, it will solve your issue.
Thanks.

Viewing 15 posts - 1 through 15 (of 15 total)

The topic ‘Getting permission-denied.txt when download only in mobile browser’ is closed to new replies.