Sounds reasonable. Glad you were able to work it out.
I did double check that and since the files are accessible with protection turned off I was pretty sure that wasn't the issue. I should say, this is a new issue and it was working fine up until late last week as far as I know.
And you are following this exactly?
https://formidableforms.com/knowledgebase/offer-protected-file-form-submission/
That's for sharing a file after a form has been submitted: "Use Formidable Forms Pro to protect your gated content file downloads and offer a download file on submit. " Not what I'm doing.
I misunderstood then. With what I'm seeing it seems like you are doing the second part.
Is that not the case?
<p>This is the code in the view:</p><p> </p><pre>Start your code here[if 135]<a href="[135]" target="_blank" rel="noopener noreferrer"><strong>View Full CV</strong></a>[/if 135]</pre>
Minus all the extra html the comment form added....
I'm going to ask some stupid questions so apologies. I'm not logged in. I should not see the protected output, correct? Are you getting the same thing while logged in?
The permissions are set so Everybody CAN see the file.
The file path is changed from what you would normally see
https://ce.udel.edu/wp-content/uploads/formidable/10/Davidson-CV-7.21.pdf
to a protected path like
https://test-ceeg.pantheonsite.io/frm_file/aWQ6NDE3NzV8ZmlsZW5hbWU6RGF2aWRzb24tQ1YtNy4yMS5wZGY=
When I'm logged in I can view as expected but in an incognito window I get the oops message.
It's still baffling that it works fine on the other site. Even more baffling - if you right click on the image and open in a new tab the image is accessible with the protected path.
So even if it something particular to PDFs why is it still working on the other site but not this one (other than they are running slightly different versions of FF?)
Okay - I found a difference between the two views that I think is causing the problem. On the CE site I have the link set to target="_blank" and on the CIS site there is one.
I just changed the view on the test-ceeg site to remove the target=blank and the rel=noopener noreferrer and I think it works now.
Can you try this URL and see if you can view the CV: https://test-ceeg.pantheonsite.io/people/faculty-profile/?id=690
If the target=blank is the issue it kind of makes sense since the idea of the protected path is to prevent people from just using the file url on it's own to access the file from say another spammy site. I guess a new blank page triggers the same action.
I still cannot.
Correction, I CAN after clearing the page cache.
Woot! Thanks for the help - your persistence made me double check everything again. I'll add my own solution.
Please login or Register to submit your answer
I'm going to turn file protection off since I don't want the site to continue to appear broken but this link will demonstrate the same problem: https://test-ceeg.pantheonsite.io/people/faculty-profile/?id=690