diff --git a/lib/FroalaEditor/File.php b/lib/FroalaEditor/File.php
index <HASH>..<HASH> 100644
--- a/lib/FroalaEditor/File.php
+++ b/lib/FroalaEditor/File.php
@@ -29,7 +29,7 @@ class File {
     if (is_null($options)) {
       $options = File::$defaultUploadOptions;
     } else {
-      $options = array_merge_recursive(File::$defaultUploadOptions, $options);
+      $options = array_merge(File::$defaultUploadOptions, $options);
     }
 
     return DiskManagement::upload($fileRoute, $options);
diff --git a/lib/FroalaEditor/Image.php b/lib/FroalaEditor/Image.php
index <HASH>..<HASH> 100644
--- a/lib/FroalaEditor/Image.php
+++ b/lib/FroalaEditor/Image.php
@@ -31,7 +31,7 @@ class Image {
     if (is_null($options)) {
       $options = Image::$defaultUploadOptions;
     } else {
-      $options = array_merge_recursive(Image::$defaultUploadOptions, $options);
+      $options = array_merge(Image::$defaultUploadOptions, $options);
     }
 
     // Upload image.
Reverted array_merge_recursive.