Class XhrFileUploadServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
sk.iway.iwcm.components.upload.XhrFileUploadServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@WebServlet("/XhrFileUpload") public class XhrFileUploadServlet extends javax.servlet.http.HttpServlet
See Also:
  • Constructor Details

    • XhrFileUploadServlet

      public XhrFileUploadServlet()
  • Method Details

    • doPost

      protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • moveFile

      public static String moveFile(String fileKey, String dir) throws IOException
      presunie uploadnuty subor
      Parameters:
      fileKey - - identifikator suboru
      dir - - cielovy adresar
      Returns:
      - nazov suboru
      Throws:
      IOException
    • moveAndReplaceFile

      public static String moveAndReplaceFile(String fileKey, String dir, String fileNameParam) throws IOException
      Throws:
      IOException
    • delete

      public static boolean delete(String hash)
    • getTempFileName

      public static String getTempFileName(String fileKey)
      Vrati meno suboru podla zadaneho kluca
      Parameters:
      fileKey -
      Returns:
    • getTempFilePath

      public static String getTempFilePath(String fileKey)
      Vrati cestu k temp suboru, pozuiva sa vo FormMail na detekciu ci subor vyhovuje poziadavkam
      Parameters:
      fileKey -
      Returns: