Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

Shared variables


 

 

Shared variables created during client side http requests can come from both GET or POST, or a combination of both

Variable names can contain almost any character.

Any variable name which ends with '[]' characters is stored by Skylark as ValueArray on server side; otherwise it's a normal Value.

Array variables are useful during file uploads, for example, when multiple files are selected at once.

 

Using this http form :

 

<form action='upload' method='POST' id='myForm' enctype='multipart/form-data'>

    <input type='file' name='FilesToUpload[]' multiple=''>

</form>

 

On server side you'll find following ValueArray variables:

 

http["FilesToUpload[]"]                with transferred file contents

http["FilesToUpload.content_type[]"]        with transferred file content types

http["FilesToUpload.filename[]"]            with transferred file names

 

Beware that the '[]' characters are parts of the variable name, to be able to distinguish them from normal Value variables without need to test them.

Last edit by cxl on 12/02/2017. Do you want to contribute?. T++