Question
· Dec 27, 2016

Upload and strore the file

Hi all,

          How to store  the upload  file in CSP?

Thanks,

 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:

<html>
<head></head>
<body>

<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>
</form>

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

</csp:if>
</body>
</html>