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

Unable to create resource. #395

Open
cline-pk opened this issue Jun 17, 2022 · 8 comments
Open

Unable to create resource. #395

cline-pk opened this issue Jun 17, 2022 · 8 comments

Comments

@cline-pk
Copy link

I'm always getting this error can someone help me to config script settings please.

@ankitpokhrel
Copy link
Owner

@cline-pk Please provide more details on what you are trying to do and what exact error you get. Can't say much based on current description.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

@daslicht
Copy link

I get that aswell when using teh code from you basic example.

Where are files uploaded to ? just to the tmp folder? Do we need to create the folder files ?

@github-actions github-actions bot removed the inactive label Sep 1, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

@daslicht
Copy link

Where are files uploaded to ? just to the tmp folder? Do we need to create the folder files ?

@github-actions github-actions bot removed the inactive label Nov 1, 2022
@ankitpokhrel
Copy link
Owner

@daslicht You can use $server->setUploadDir($path) method to set the upload path. Yes, you need to create root folder.

@github-actions
Copy link

github-actions bot commented Jan 5, 2023

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

@khloukrada
Copy link

khloukrada commented Nov 2, 2023

In my case, I forgot to set rewrite rule for the server to respond to /files endpoint as mentioned in the document.
For Apache:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^files/?(.*)?$ /server.php?$1 [QSA,L]

You could also use $client->setApiPath('/api') to change the default endpoint.

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

No branches or pull requests

4 participants