You are here

function s3fs_cors_upload_submit in S3 File System CORS Upload 7

Submit callback for the upload button on s3fs_cors elements.

1 string reference to 's3fs_cors_upload_submit'
s3fs_cors_upload_process in ./s3fs_cors.module
Element process function for s3fs_cors_upload element.

File

./s3fs_cors.module, line 504
Allow uploading of files directly to AmazonS3 via the browser using CORS.

Code

function s3fs_cors_upload_submit($form, &$form_state) {

  // No action is needed here because all file uploads on the form are
  // processed by s3fs_cors_upload_value().
  // Since this function did not change $form_state, a rebuild isn't
  // necessary; setting $form_state['redirect'] to FALSE would suffice.
  // However, we choose to always rebuild, to keep the form processing
  // workflow consistent between the two buttons.
  $form_state['rebuild'] = TRUE;
}