Created
August 13, 2012 20:02
-
-
Save enzolutions/3343735 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plupload.module b/plupload.module | |
index 6dbbddd..3249bcb 100644 | |
--- a/plupload.module | |
+++ b/plupload.module | |
@@ -288,7 +288,7 @@ function plupload_library() { | |
'runtimes' => 'html5,flash,html4', | |
'url' => url('plupload-handle-uploads', array('query' => array('plupload_token' => drupal_get_token('plupload-handle-uploads')))), | |
'max_file_size' => file_upload_max_size() . 'b', | |
- 'chunk_size' => '1mb', | |
+ 'chunk_size' => parse_size(ini_get('post_max_size')), | |
'unique_names' => TRUE, | |
'flash_swf_url' => file_create_url($library_path . '/js/plupload.flash.swf'), | |
'silverlight_xap_url' => file_create_url($library_path . '/js/plupload.silverlight.xap'), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment