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