{"id":2682,"date":"2015-01-28T14:38:21","date_gmt":"2015-01-28T10:38:21","guid":{"rendered":"http:\/\/www.dhtmlx.com\/blog\/?p=2682"},"modified":"2025-07-30T12:04:09","modified_gmt":"2025-07-30T09:04:09","slug":"download-uploaded-files-new-dhtmlxvault-2-4","status":"publish","type":"post","link":"https:\/\/dhtmlx.com\/blog\/download-uploaded-files-new-dhtmlxvault-2-4\/","title":{"rendered":"Ability to Download Uploaded Files with New dhtmlxVault 2.4"},"content":{"rendered":"<p>We are happy to inform you that we released a new version of our <a href=\"https:\/\/dhtmlx.com\/docs\/products\/dhtmlxVault\/\" target=\"_blank\">JavaScript file uploader<\/a>, dhtmlxVault 2.4.<\/p>\n<p><strong>Ability to download files<\/strong><\/p>\n<p>The most significant and demanded new feature in this version is the ability to download the files from Vault. You may check the <a href=\"https:\/\/snippet.dhtmlx.com\/6dvbdt6s?tag=vault\" target=\"_blank\"> Vault demo<\/a> and the way to <a href=\"https:\/\/docs.dhtmlx.com\/vault__server_side_integration.html#handlefilesdownloading\" target=\"_blank\">handle files downloading<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/dhtmlx.com\/blog\/wp-content\/uploads\/2015\/01\/vault-screen-2.png\" alt=\"vault-download-files\" width=\"600\" height=\"291\" class=\"aligncenter size-full wp-image-2683\" srcset=\"https:\/\/dhtmlx.com\/blog\/wp-content\/uploads\/2015\/01\/vault-screen-2.png 600w, https:\/\/dhtmlx.com\/blog\/wp-content\/uploads\/2015\/01\/vault-screen-2-300x145.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><br \/>\n<!--more--><br \/>\n<strong>Usage of max file size<\/strong><\/p>\n<p>Starting from 2.4, you can set the max size of the file that can be uploaded. If the size of the file exceeds the specified one, Vault gives an error.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/dhtmlx.com\/blog\/wp-content\/uploads\/2015\/01\/max-file-size.png\" alt=\"max-file-size\" width=\"414\" height=\"267\" class=\"aligncenter size-full wp-image-2684\" srcset=\"https:\/\/dhtmlx.com\/blog\/wp-content\/uploads\/2015\/01\/max-file-size.png 414w, https:\/\/dhtmlx.com\/blog\/wp-content\/uploads\/2015\/01\/max-file-size-300x193.png 300w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/p>\n<p><strong>New readableSize method<\/strong><\/p>\n<p>This <a href=\"https:\/\/docs.dhtmlx.com\/api__dhtmlxvault_readablesize.html\" target=\"_blank\">new method<\/a> allows converting the file size into the readable format. E.g.:<\/p>\n<div class=\"codecolorer-container javascript default codecolorer-noborder\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"javascript codecolorer\">console.<span class=\"me1\">dir<\/span><span class=\"br0\">&#40;<\/span><span class=\"br0\">&#91;<\/span><br \/>\n&nbsp; &nbsp; myVault.<span class=\"me1\">redableSize<\/span><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp; myVault.<span class=\"me1\">redableSize<\/span><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1234<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp; myVault.<span class=\"me1\">redableSize<\/span><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1234567<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp; myVault.<span class=\"me1\">redableSize<\/span><span class=\"br0\">&#40;<\/span><span class=\"nu0\">1234567890<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">,<\/span><br \/>\n<span class=\"br0\">&#93;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<span class=\"co1\">\/\/ output: 1 b, 1.21 Kb, 1.18 Mb, 1.15 Gb<\/span><\/div><\/div>\n<p>Also dhtmlxVault 2.4 includes the following updates:<\/p>\n<ul>\n<li>conf-request changed to GET by default and depends on dhx4.ajax.method<\/li>\n<li>params in url fixed for SL mode<\/li>\n<\/ul>\n<p>\nYou may download the <a href=\"https:\/\/dhtmlx.com\/x\/download\/regular\/dhtmlxVault.zip\" target=\"_blank\">Standard Edition of the product<\/a>. If you&#8217;d like to try the PRO Edition, please fill out <a href=\"https:\/\/dhtmlx.com\/docs\/products\/dhtmlxVault\/download.shtml\" target=\"_blank\">this form<\/a>. <\/p>\n<p>The PRO users with active support subscription will receive the updated version via email.<\/p>\n<p>Feel free to leave your feedback and comments below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are happy to inform you that we released a new version of our JavaScript file uploader, dhtmlxVault 2.4. Ability to download files The most significant and demanded new &#8230;<\/p>\n","protected":false},"author":2,"featured_media":3311,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,70,1,38],"tags":[33,16,4],"class_list":["post-2682","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-posts-for-codeproject-com","category-releases","category-uncategorized","category-visible","tag-all-posts","tag-dhtmlxvault","tag-dhtmlx-updates"],"_links":{"self":[{"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/posts\/2682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/comments?post=2682"}],"version-history":[{"count":6,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/posts\/2682\/revisions"}],"predecessor-version":[{"id":14182,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/posts\/2682\/revisions\/14182"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/media\/3311"}],"wp:attachment":[{"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/media?parent=2682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/categories?post=2682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/tags?post=2682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}