Hi, Everybody!

For a couple weeks now, I'm trying to write a little app on picolisp. Just
upload and search pdf files. It works fine when I upload and search files
from REPL. See load-pdf and find-pdf functions. But breaks when I'm trying
to use them in web form. It gives me errors, *Query [::1] not allowed or
*Get [::1] not allowed. Or just empty response. Even weirder, for example
if I upload file without database, it works fine. But when I add db
functiona
lity, it breaks. See attached files. So, now I have a few questions:

1. What's wrong with my code? How can I make it work? Sorry for stupid
quistions, I just stuck solving it myself.
2. Is it possible to Url rewrite in picolisp? For example I want to show
 http://localhost:9911/files/book.pdf
Instead of
 http://localhost:9911/db/pdfdb/blob/A/3.pdf
3. How to choose parameters for (dbs ...) say for database performance or
size? Where can I learn about database internals?
4. Is it possible to disable all security for debug purposes and let it
access anything. Or maybe better how to debug it the right way, maybe a
little tutorial for debugging web apps.
5. How can I select only pdf files in File Picker dialog (+UpField) and
bulk upload multiple files with progress bars for each. Or maybe just a
hint how you would've done it. I'll try to do it myself.

Thanks,
Alex M.

Attachment: pdfdb-web-simple.l
Description: Binary data

Attachment: test-web-upload.l
Description: Binary data

Reply via email to