New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature #12564 remote control: adds upload_file action #795

Merged
merged 1 commit into from Aug 14, 2017

Conversation

Projects
None yet
2 participants
@pardo-bsso

pardo-bsso commented Aug 14, 2017

Dev: adds another action, upload_file, to the remote control interface.
It takes the following parameters:

  • string $sSessionKey Auth credentials
  • int $iSurveyID ID of the Survey to insert file
  • string $sFieldName the Field to upload file
  • string $sFileName the uploaded file name
  • string $sFileContent the uploaded file content encoded as BASE64

Returns the file metadata with final upload path or error description.
The format of the return value is the same as the one for
UploadController:

array(
    "success"   => true,
    "size"      => Size in Kib
    "name"      => File name (as requested on the call)
    "ext"       => File Extension
    "filename"  => The (random) file name on the temp upload folder
    "msg"       => gT("The file has been successfully uploaded.")
);
New feature #12564 remote control: adds upload_file action
Dev: adds another action, upload_file, to the remote control interface.
It takes the following parameters:

  - string $sSessionKey  Auth credentials
  - int    $iSurveyID    ID of the Survey to insert file
  - string $sFieldName   the Field to upload file
  - string $sFileName    the uploaded file name
  - string $sFileContent the uploaded file content encoded as BASE64

Returns the file metadata with final upload path or error description.
The format of the return value is the same as the one for
UploadController:

    array(
        "success"   => true,
        "size"      => Size in Kib
        "name"      => File name (as requested on the call)
        "ext"       => File Extension
        "filename"  => The (random) file name on the temp upload folder
        "msg"       => gT("The file has been successfully uploaded.")
    );
@pardo-bsso

This comment has been minimized.

Show comment
Hide comment
@pardo-bsso

pardo-bsso Aug 14, 2017

This one is against develop and addresses the comments on the previous version.

pardo-bsso commented Aug 14, 2017

This one is against develop and addresses the comments on the previous version.

@LouisGac LouisGac merged commit a6b9fe0 into LimeSurvey:develop Aug 14, 2017

1 check passed

review/gitmate/pr This PR has no issues. :)
Details
@LouisGac

This comment has been minimized.

Show comment
Hide comment
@LouisGac

LouisGac Aug 14, 2017

Contributor

thank you for your work

Contributor

LouisGac commented Aug 14, 2017

thank you for your work

@pardo-bsso pardo-bsso deleted the Cambalab:remote-control-add-upload_file-action branch Aug 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment