What version of File Away are you using? The latest? When I click on them in either Chrome or Firefox, I get failed no file, or 404 not found, with or without the https. Even if I add the https in the browser url, I get 404 not found. Is the path correct?
If you wanna try something for me:
Open up wp-content/plugins/file-away/lib/inc/inc.base.php
On line 3, directly above the line that says: $url = $this->op['baseurl'];
add this:
$this->op['baseurl'] = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443
? str_replace('http:', 'https:', $this->op['baseurl']) : $this->op['baseurl'];
Let me know if that helps.
Alternatively (I don’t know if this is a good idea or not), you could try going to your WordPress General settings and changing your site url and your wp url to https. (Again, I don’t know if that’s something you should do. You’d know better than I.)
Sorry for the late reply. I inserted the code and the links are now ok.
Unfortunately the files still cannot be downloaded. The path is correct: /technet.genesis-technologies.ch/wp-content/uploads/pdfs
The plugin is latest version, WordPress 4.0. Maybe a .htaccess problem?
I’d say, yes, it’s most likely a permissions issue. Explore that, if not we’ll try something other avenues.
Yes it is a permission issue. I use UAM for permissions. The line “RewriteRule (.*) /index.php?uamfiletype=attachment&uamgetfile=$1 [L]” does cause the problem.
How can we reach full protection by UAM and use your plugin?
Thanks!!!
I can see that UAM defines access groups for every ID, if its a page, post or upload. How can I see whats the ID of your plugin if its inserted into a page/post?
I’m not sure what you mean by “ID of my plugin.” I’ll try and install UAM and see if I can figure something out. Meanwhile, try adding encryption="true"
to your shortcode and see if going directly to the server for the file helps.
Where do you store your files? I’m setting up UAM and I want to try as best I can to duplicate your setup.
Will put everything together and mail it asap!
Thanks for that. OK, so if the files are in the same directory as the .htaccess file, ordinary download links don’t work. If they are in a subdirectory, they will download fine, whether assigned to a user group or not. Using File Away’s Manager table, I can rename, move, delete, and copy files in the same directory as the .htaccess file as well as other directories, with no problems. I can create, rename, and delete directories within the .htaccessed directory, no problems. But an ordinary download link doesn’t work (nothing to do with HTTPS).
However, if I enable encryption, the files will download fine (because we’re going straight to the server to ask for them). Also, if I enable statistics (a feature you don’t have yet, it’s in development), they download fine for the same reason (we go straight to the server for them). I’ll keep poking around to see if I can find another solution, but in the meantime, encrypting file download links will solve your problem.
Forgot to mention I can also upload files using FileUp with no problems.
OH. I also failed to ask, are you using [fileaway] or [attachaway]?
Looking through the UAM forums, it seems that this is a problem several people have had with UAM, and none of them users of File Away. :/
Just discovered that download work fine if you use Attach Away.