Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Change Profile Picture of<----> | ||||||||
Added: | ||||||||
> > | ||||||||
Added: | ||||||||
> > | var myDropzone;
Dropzone.autoDiscover = false;
$(document).ready(
function(){
if ( Dropzone.isBrowserSupported() ) {
$('#fileUpload').replaceWith(' ');
$('#submitFile').replaceWith('');
myDropzone = new Dropzone("form.dropzone", {
| |||||||
function validateFileType( fieldID, allowedTypes )
{
var fileName=document.getElementById( fieldID ).value;
if( fileName ) {
alert( 'Please specify a file of type '+allowedTypes+'.' );
return false;
} else {
var fileExt = (fileName.substring((fileName.lastIndexOf('.')+1)).toLowerCase());
var ext=allowedTypes.split( /, */ );
for ( var i in ext ) {
if( ext[i]==fileExt ) {
return true;
}
}
alert( 'Invalid file type. Please specify a file of type '+allowedTypes+'.' );
return false;
}
}
<---->
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > |
| |||||||
Deleted: | ||||||||
< < |
Recommended step before upload: Crop the image to about square size, and resize it to a width of 200 pixels. This makes it load faster. | |||||||
Added: | ||||||||
> > | ||||||||
<--
|