Upload file with form #91
-
Hello! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Any chance you can post your code to a code repo and link to it? I would love to learn how to do this as well. Sorry for the non answer! |
Beta Was this translation helpful? Give feedback.
-
Can you submit this as a bug. I am not sure if added the code for file upload (post for sure implemented). This way gets in my queue to do soon. |
Beta Was this translation helpful? Give feedback.
-
I have added file upload support in latest commit. See the updated tutorial 17 and source/clog-form.lisp |
Beta Was this translation helpful? Give feedback.
-
A quick follow up on uploading files to the server:
(defun on-page4 (body)
testing to see if it writes to text file All of that is correct. QUESTION: What is the correct way to get data from the form and save it to a file? QUESTION: How to check if the files is binary or not? Do we need to care, can we just dump the raw data to file and just name it whatever the uploader is uploading? It looks like we should be using Flexistreams for this, is that correct? QUESTION: Tangential to this, does anyone have any general hints on where to look for examples on how to check / recognize filetypes beyond parsing the extension? Any hints on the above questions are appreciated. |
Beta Was this translation helpful? Give feedback.
I have added file upload support in latest commit. See the updated tutorial 17 and source/clog-form.lisp