From 5158a6f4339ee85b928e6bd33a937a24f91f8bc2 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 4 Jun 2009 17:53:40 -0700 Subject: Add MY_num containing num::convert_to_bytes() which supports PHP's size shorthand, and convert the simple_uploader code to use it. --- modules/gallery/helpers/MY_num.php | 40 ++++++++++++++++++++++++++ modules/gallery/views/simple_uploader.html.php | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 modules/gallery/helpers/MY_num.php (limited to 'modules') diff --git a/modules/gallery/helpers/MY_num.php b/modules/gallery/helpers/MY_num.php new file mode 100644 index 00000000..613b99df --- /dev/null +++ b/modules/gallery/helpers/MY_num.php @@ -0,0 +1,40 @@ +server("HTTP_USER_AGENT") ?>", "csrf": "" }, - file_size_limit : "", + file_size_limit : "", file_types : "*.gif;*.jpg;*.jpeg;*.png;*.flv;*.mp4;*.GIF;*.JPG;*.JPEG;*.PNG;*.FLV;*.MP4", file_types_description : "", file_upload_limit : 1000, -- cgit v1.2.3