@Override public boolean uploadFile(String source,String dest){
  FileInputStream fis;
  try {
    File file=new File(source);
    fis=new FileInputStream(file);
    mDBApi.putFileOverwrite(dest,fis,file.length(),null);
    fis.close();
    return true;
  }
 catch (  DropboxUnlinkedException e) {
    Log.d(String.valueOf(R.string.app_name),"User has unlinked.",e);
    return false;
  }
catch (  DropboxException e) {
    Log.d(String.valueOf(R.string.app_name),"Something went wrong while uploading.",e);
    return false;
  }
catch (  FileNotFoundException e) {
    Log.d(String.valueOf(R.string.app_name),"File not found.",e);
    return false;
  }
catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
}

@ Override public boolean uploadFile ( String source , String dest ) { FileInputStream fis ; try { File file = new File ( source ) ; fis = new FileInputStream ( file ) ; mDBApi . putFileOverwrite ( dest , fis , file . length ( ) , null ) ; fis . close ( ) ; return true ; } catch ( DropboxUnlinkedException e ) { Log . d ( String . valueOf ( R . string . app_name ) , "User has unlinked." , e ) ; return false ; } catch ( DropboxException e ) { Log . d ( String . valueOf ( R . string . app_name ) , "Something went wrong while uploading." , e ) ; return false ; } catch ( FileNotFoundException e ) { Log . d ( String . valueOf ( R . string . app_name ) , "File not found." , e ) ; return false ; } catch ( IOException e ) { e . printStackTrace ( ) ; return false ; } }
uploads a file from source to the dropbox
