mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
Merge remote-tracking branch 'origin/bulk-operations'
# Conflicts: # app/Http/Helpers/helpers.php # public/chunks/app-others.js # public/js/main.js # public/mix-manifest.json # resources/js/components/FilesView/FileItemList.vue # resources/js/components/FilesView/FilePreview.vue # resources/js/helpers.js # resources/js/store/modules/fileFunctions.js
This commit is contained in:
@@ -355,6 +355,25 @@ function format_gigabytes($gigabytes)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Format string to formated megabytes string
|
||||
*
|
||||
* @param $megabytes
|
||||
* @return string
|
||||
*/
|
||||
function format_megabytes($megabytes)
|
||||
{
|
||||
if ($megabytes >= 1000) {
|
||||
return $megabytes / 1000 . 'GB';
|
||||
}
|
||||
|
||||
if ($megabytes >= 1000000) {
|
||||
return $megabytes / 1000000 . 'TB';
|
||||
}
|
||||
|
||||
return $megabytes . 'MB';
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert megabytes to bytes
|
||||
*
|
||||
@@ -530,7 +549,11 @@ function get_pretty_name($basename, $name, $mimetype)
|
||||
}
|
||||
|
||||
/**
|
||||
<<<<<<<<< Temporary merge branch 1
|
||||
* Read exif data from jpeg image file
|
||||
=========
|
||||
* Get exif data from jpeg image
|
||||
>>>>>>>>> Temporary merge branch 2
|
||||
*
|
||||
* @param $file
|
||||
* @return array
|
||||
|
||||
Reference in New Issue
Block a user