-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Struggling with Rest API #131
Comments
Don't you need the @ after file input? curl -X 'POST' \ 'http://192.168.102.134:8083/remove-pages?pagesToDelete=2%2C4' \ It has the -F 'fileInput=@/dir |
tried that already, with the '@' I get a 3Kb file, it contains:
seen that example already, Im on the paperless-ngx track too (he posted there as well....) small world |
I think that you need the @ but some invalid characters i guess.. hmmm also according to logs you are putting the passwork in quotes, i dont think it accepts quotes via URL parameters |
have you tried to replicate this POST using postman or something to make sure it works as well? |
Doing it that way gives me the output like this curl --location 'localhost:8080/remove-pages' which might work better for your more unique passwords with special characters rather that using direct URL encoding |
will try as soon as i get back home thanks for your efforts, will post in this issue as soon as I can, daughter duties now 😅 |
i think in docker logs i get what i posted before (file contents) will post back after checking logs! thanks again! |
indeed that was it, here the final liner:
Thanks so much!!! |
Hello there, first of all, congrats for such a nice work.
Since I can do a curl to rest api im testing if I can remove password from there; it works well from web ui but as I have lots of files with password I would like to use the API and make a script to remove passwords from all files.
Im not going deep in the script here, but I post the api call:
it creates a 0Kb NO_PASS.pdf file
here the command from my actual instance: http://192.168.2.43:8087/swagger-ui/index.html
what Im doing wrong here? any suggestion?
Running Stirling-PDF from docker BTW
Thanks so much in advance!
The text was updated successfully, but these errors were encountered: