Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 53... Línea 53...
53
     *   signature like `function () {...}`.
53
     *   signature like `function () {...}`.
54
     * - state: (Aws\Multipart\UploadState) An object that represents the state
54
     * - state: (Aws\Multipart\UploadState) An object that represents the state
55
     *   of the multipart upload and that is used to resume a previous upload.
55
     *   of the multipart upload and that is used to resume a previous upload.
56
     *   When this option is provided, the `bucket`, `key`, and `part_size`
56
     *   When this option is provided, the `bucket`, `key`, and `part_size`
57
     *   options are ignored.
57
     *   options are ignored.
-
 
58
     * - track_upload: (boolean) Set true to track status in 1/8th increments
-
 
59
     *   for upload.
58
     *
60
     *
59
     * @param S3ClientInterface $client Client used for the upload.
61
     * @param S3ClientInterface $client Client used for the upload.
60
     * @param mixed             $source Source of the data to upload.
62
     * @param mixed             $source Source of the data to upload.
61
     * @param array             $config Configuration used to perform the upload.
63
     * @param array             $config Configuration used to perform the upload.
62
     */
64
     */
Línea 68... Línea 70...
68
        parent::__construct($client, $source, array_change_key_case($config) + [
70
        parent::__construct($client, $source, array_change_key_case($config) + [
69
            'bucket' => null,
71
            'bucket' => null,
70
            'key'    => null,
72
            'key'    => null,
71
            'exception_class' => S3MultipartUploadException::class,
73
            'exception_class' => S3MultipartUploadException::class,
72
        ]);
74
        ]);
-
 
75
 
-
 
76
        if ($this->displayProgress) {
-
 
77
            $this->getState()->setProgressThresholds($this->source->getSize());
-
 
78
        }
73
    }
79
    }
Línea 74... Línea 80...
74
 
80
 
75
    protected function loadUploadWorkflowInfo()
81
    protected function loadUploadWorkflowInfo()
76
    {
82
    {