Package DE_EPAGES::Presentation::API::Upload
upload files (saveFile, UploadToMediaGallery, UploadFiles, SaveFiles, savePrivateFile, ImportStyles, SaveStylePreview, Save, SaveDownloadProductMaps, CVSImport)
@EXPORT_OK |
Functions
GetJSONImageInfo
Unifies the data returned by JSON upload UI action handler. Returns a hash ref with the two keys 'imageInfo' with data from GetImageInfo() and 'uploadedObjectFile' with data of the uploaded file.
Syntax |
$hJsonImageData = GetJSONImageInfo( $PublicPath, $File ); my $hJsonImageData = GetJSONImageInfo($PublicPath, $File); $hResponseContent->{$_} = $hJsonImageData->{$_} foreach keys %$hJsonImageData; |
Input |
|
Return |
|
GetJSONImagesInfo
Unifies the data returned by JSON upload UI action handler. Returns a hash ref with the two keys 'imageInfo' with data from GetImageInfo() and 'uploadedObjectFiles' with data of the uploaded files.
Syntax |
$hJsonImageData = GetJSONImagesInfo( $PublicPath, $aFiles ); my $hJsonImageData = GetJSONImagesInfo($PublicPath, \@Files); $hResponseContent->{$_} = $hJsonImageData->{$_} foreach keys %$hJsonImageData; |
Input |
|
Return |
|
Upload
Saves an uploaded file, multiple files, a URL on the server. Returns the file name with the file extension relative to object directory and the standard response for the servlet.
Syntax |
my ($aFileName, $hResponse) = Upload( $Object, $Form, $hParam ); my ($aFileName, $hResponse) = Upload( $Shop, $Form, { 'InputName' => 'NewFile', 'Index' => 0, 'Extension' => 'zip', 'Binary' => 1, 'CreateDirectory' => 1, 'Path' => '/Webroot/Store/Shops/Demoshop/', 'FileName' => 'BlaBla', 'Formname' => 'NewFile', }); |
Input |
|
Return |
|