updated config parameters for upload helper

parent 955a674b
Showing with 10 additions and 3 deletions
......@@ -530,8 +530,15 @@ $config['proxy_ips'] = '';
| amontejo@ujaen.es - 2020
--------------------------------------------------------------------*/
// Name of your bucket in cloud storage service
$config['upload_bucket'] = 'wbt2020.appspot.com';
// Destination storage path (don't forget trailing '/')
$config['upload_path'] = ENVIRONMENT == 'production' ? 'gs://wbt2020.appspot.com/uploads/' : './uploads/';
$config['upload_path'] = ENVIRONMENT == 'production' ?
'gs://' . $config['upload_bucket']
: './uploads/';
// Prefix for building public URL to the uploaded file
$config['upload_prefix'] = ENVIRONMENT == 'production' ? 'https://storage.cloud.google.com/wbt2020.appspot.com/uploads/' : $config['base_url'] . 'uploads/';
\ No newline at end of file
$config['upload_prefix'] = ENVIRONMENT == 'production' ?
'https://storage.cloud.google.com/' . $config['upload_bucket'] . '/'
: $config['base_url'] . 'uploads/';
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment