Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with file path #20

Open
esedic opened this issue Jun 15, 2023 · 0 comments
Open

Problem with file path #20

esedic opened this issue Jun 15, 2023 · 0 comments

Comments

@esedic
Copy link

esedic commented Jun 15, 2023

Hi!

I suppose it's not a real issue with a library.

I'm using this library in Wordpress theme together with Advanced Custom Fields 'File' field type.
I'm having trouble with file path, I can get from ACF either URL path 'https://www.mydomain.com/wp-content/uploads/2023/06/document.pdf' or full server path '/var/www/html/wp-content/uploads/2023/06/document.pdf'.
Neither of these works, I get "is not a valid file" error.

I tested library on localhost with document in same folder as my PHP script and it works normally.

Any suggestions?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant