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

in Download Manager Free

Viewing 15 posts - 1 through 15 (of 15 total)
Apr 6, 2021 at 3:03 am
#149956
Participant
Alberto
OP

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.

Apr 6, 2021 at 9:03 am
#149984

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

Apr 9, 2021 at 8:41 am
#150168
Participant
Alberto
OP

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!

Apr 9, 2021 at 9:58 am
#150178

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

Thanks

Apr 10, 2021 at 11:39 am
#150223
Participant
Alberto
OP
This reply has been marked as private.
Apr 12, 2021 at 8:02 am
#150305
Moderator
Shafayet
Staff

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

Apr 12, 2021 at 9:11 am
#150312
Participant
Alberto
OP
This reply has been marked as private.
Apr 12, 2021 at 9:34 am
#150315
Moderator
Shafayet
Staff

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

Apr 12, 2021 at 9:55 am
#150317
Participant
Alberto
OP

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 4 years, 10 months ago by Alberto.
Apr 12, 2021 at 10:18 am
#150319
Moderator
Shafayet
Staff

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.

Apr 14, 2021 at 7:20 am
#150453
Participant
Alberto
OP

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

Apr 14, 2021 at 8:28 am
#150455
Moderator
Shafayet
Staff

Please give me the URL you trying to download from.

Apr 14, 2021 at 9:37 am
#150458
Participant
Alberto
OP
This reply has been marked as private.
Apr 15, 2021 at 2:17 pm
#150561
Participant
Alberto
OP

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

Apr 21, 2021 at 11:40 am
#150847
Spectator
Humayon

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.