
| 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: | ||||||||
| < < | ||||||||
| > > |  | |||||||
| Added: | ||||||||
| > > | 
 | |||||||
| 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: | ||||||||
| > > | ||||||||
| 
 <-- 
 | ||||||||
| Change Profile Picture of<----><----> 
 | ||||||||
| Changed: | ||||||||
| < < |  | |||||||
| > > | <img %IF{ "''/attachments[name='']" then='src="/twiki/pub/Main//" title=""' else='src="/twiki/pub/Main/UserProfileHeader/default-user-profile.jpg"' | |||||||
| Added: | ||||||||
| > > | }% width="200" alt="" /> | |||||||
| 
 | ||||||||
| Changed: | ||||||||
| < < | ||||||||
| > > | ||||||||
| <-- 
 | ||||||||
| Change Profile Picture of<----><----> 
 <-- 
 | 
 
  Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.