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.
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
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!
Please share your temporary admin login info in a private reply. Also, user A/B login info to check the issue.
Thanks
That is probably due to an issue with the APP, probably related to user session handling.
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.
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
Please give me the URL you trying to download from.
is there any way that i can use to open download in _self target instead of _blank?
The topic ‘Getting permission-denied.txt when download only in mobile browser’ is closed to new replies.