“strefa zrzutu” Kod odpowiedzi

strefa zrzutu

<form action="/destination" class="dropzone" id="my-dropzine"></form>

<script>
	Dropzone.autoDiscover = false;
	
  	$(".dropzone").dropzone({
	success: function(file, response) {
    	console.log(response);
    }
</script>
Ivan Cuaco

Dropzone akceptowane pliki

<script type="text/javascript">
   Dropzone.options.dropzone = {
        accept: function(file, done) {
            console.log(file);
            if (file.type != "image/jpeg") {
                done("Error! Files of this type are not accepted");
            }
            else { done(); }
        }
    }
 </script>
Blue Baboon

Dzone

DZone.com is one of the world’s largest online communities and leading 
publisher of knowledge resources for software developers. Every day, 
hundreds of thousands of developers come to DZone.com to read about the 
latest technology trends and learn about new technologies, methodologies, 
and best practices through shared knowledge.
Fylls

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu