<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dropzone JS Archives - AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</title>
	<atom:link href="https://atcodex.com/tag/dropzone-js/feed/" rel="self" type="application/rss+xml" />
	<link>https://atcodex.com/tag/dropzone-js/</link>
	<description>Achieve financial success without sacrificing well-being! AtCodex provides actionable strategies for managing money, time, and personal growth—all in one place.</description>
	<lastBuildDate>Sat, 28 Aug 2021 17:15:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://atcodex.com/wp-content/uploads/2020/05/cropped-New-Project-1-32x32.png</url>
	<title>Dropzone JS Archives - AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</title>
	<link>https://atcodex.com/tag/dropzone-js/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Drag and Drop Multiple File Upload using Dropzone JS and PHP</title>
		<link>https://atcodex.com/php/drag-and-drop-multiple-file-upload-using-dropzone-js-and-php/</link>
		
		<dc:creator><![CDATA[atcodex]]></dc:creator>
		<pubDate>Mon, 10 Aug 2020 18:36:02 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Dropzone JS]]></category>
		<guid isPermaLink="false">https://atcodex.com/?p=698</guid>

					<description><![CDATA[<p>DropzoneJS provide us the functionality to upload multiple files with drag and drop option. It is an open-source library that is easy to use. In this post, we will show &#8230; </p>
<p>The post <a href="https://atcodex.com/php/drag-and-drop-multiple-file-upload-using-dropzone-js-and-php/">Drag and Drop Multiple File Upload using Dropzone JS and PHP</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong><em>DropzoneJS</em></strong> provide us the functionality to upload multiple files with drag and drop option. It is an open-source library that is easy to use.</p>



<p class="wp-block-paragraph">In this post, we will show you how easily you can upload the file by just drag and drop, using <strong><em>dropzone js</em></strong> and PHP.</p>



<p class="wp-block-paragraph">We need <strong><em>DropzoneJS </em></strong>library and simple PHP upload function to upload the file on destination folder.</p>



<p class="wp-block-paragraph">In the below example you will learn the use of <strong><em>dropzone js. </em></strong></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p><strong>Step 1 : Create index.php File</strong></p><p></p></blockquote>



<p class="wp-block-paragraph">First you need to create an index.php file with the following code.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="html" data-enlighter-theme="monokai" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;!DOCTYPE html>
&lt;html>
&lt;head>
    &lt;title>Drag and Drop File Upload using Dropzone JS and PHP - Atcodex.com&lt;/title>
    &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.0.1/min/dropzone.min.css" rel="stylesheet">
    &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.2.0/min/dropzone.min.js">&lt;/script>
&lt;/head>
&lt;body>

&lt;div class="container">
    &lt;div class="row">
        &lt;div class="col-md-12">
            &lt;h2>Drag and Drop File Upload using Dropzone JS and PHP - Atcodex.com&lt;/h2>
            &lt;form action="fileUpload.php" enctype="multipart/form-data" class="dropzone" id="image-upload">
                &lt;div>
                    &lt;h3>Drag and Drop File&lt;/h3>
                &lt;/div>
            &lt;/form>
        &lt;/div>
    &lt;/div>
&lt;/div>

&lt;script type="text/javascript">
    Dropzone.options.imageUpload = {
        maxFilesize:1,
        acceptedFiles: ".jpeg,.jpg,.png,.gif"
    };
&lt;/script>

&lt;/body>
&lt;/html></pre>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p><strong>Step 2 : Create fileUpload.php File</strong></p></blockquote>



<p class="wp-block-paragraph">Next, you need to create <strong>fileUpload.php</strong> file in with the following code, which basically files uploading PHP code.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="php" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;?php

$directoryName = 'imageFolder';   // folder name where image need to be uploaded

if (!empty($_FILES)) {
 $tmpFile = $_FILES['file']['tmp_name'];
 $filename = $directoryName.'/'.time().'-'. $_FILES['file']['name'];
 move_uploaded_file($tmpFile,$filename);
}

?></pre>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p><strong>Step 3 : Create imageFolder</strong> <strong>folder</strong></p><p></p></blockquote>



<p class="wp-block-paragraph">In the final step, you need to create <strong><em>imageFolder</em></strong> folder to store the images. You can give it a different name also.</p>



<p class="wp-block-paragraph">Now you can run the  code in localhost. below is the demo of the code.</p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link">Demo</a></div>
</div>



<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Drag and Drop Multiple File Upload using Dropzone JS and PHP" width="735" height="413" src="https://www.youtube.com/embed/rplzu7FN9i0?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">Also you can check <a href="https://atcodex.com/php/jquery-ajax-image-upload-in-php-with-preview/">jQuery ajax image upload in PHP with preview</a></p>
<p>The post <a href="https://atcodex.com/php/drag-and-drop-multiple-file-upload-using-dropzone-js-and-php/">Drag and Drop Multiple File Upload using Dropzone JS and PHP</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
