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