· Dec 27, 2016

Upload and strore the file

Hi all,

          How to store  the upload  file in CSP?


 Prabakaran A.

Discussion (6)0
Log in or sign up to continue

Here is a simple example to upload and store a file via a csp page:


<form enctype="multipart/form-data" method="post" action="upload.csp">
    Enter a file to upload here: <input type=file size=30 name=FileStream>
    <hr />
    <ul><input type="submit" value="Upload file"></ul>

<csp:if condition='($data(%request.MimeData("FileStream",1)))'>
    <h2>Saving file...</h2>