|
|
|
@ -147,14 +147,12 @@ public class sigServer { |
|
|
|
|
if (!wroteData) { |
|
|
|
|
System.out.println("Upload failed!"); |
|
|
|
|
CreateRequest(client,"400","Bad Request",Paths.get(sigPlace.OUTDIR,"testfile.html")); |
|
|
|
|
return; |
|
|
|
|
} else { |
|
|
|
|
System.out.println("Saving upload to "+myFile); |
|
|
|
|
if (filename.contains(".png")) { |
|
|
|
|
CreateRequest(client,"200","OK",Paths.get(sigPlace.OUTDIR,"testfile.html")); |
|
|
|
|
ArcadeReader.submitToDatabase(Paths.get(sigPlace.ARCADEDIR,filename)); |
|
|
|
|
System.out.println("Submitted to the database!"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
filename=null; |
|
|
|
|