Skip to content

Commit

Permalink
basic concept working. need to add form upload + refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
raprasad committed Sep 23, 2016
1 parent 8a02e79 commit e1e2e78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/api/FileUpload.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void saveFile(InputStream uploadedInputStream,
private InputStream getSampleFile(){

InputStream is = null;
String testFileName = "/Users/rmp553/Documents/iqss-git/dataverse-helper-scripts/src/api_scripts/input/howdy.txt";
String testFileName = "/Users/rmp553/Documents/iqss-git/dataverse-helper-scripts/src/api_scripts/input/howdy2.txt";
//testFileName = "/Users/rmp553/NetBeansProjects/dataverse/src/main/java/edu/harvard/iq/dataverse/datasetutility/howdy.txt";
try {
is = new FileInputStream(testFileName);
Expand Down Expand Up @@ -363,9 +363,10 @@ public Response hi(){
Logger.getLogger(FileUpload.class.getName()).log(Level.SEVERE, null, ex);
}

String dupeName = df.getFileMetadata().getLabel();
removeLinkedFileFromDataset(selectedDataset, df);

return okResponse("This file has a dupe md5! " + df.toString());
return okResponse("This file has a dupe md5! " + dupeName + " checksum: " + df.getmd5());
}else{
//df.save();
newFiles.add(df);
Expand Down

0 comments on commit e1e2e78

Please sign in to comment.