Examples of upload()


Examples of com.jspsmart.upload.SmartUpload.upload()

    SmartUpload mySmartUpload = new SmartUpload();
    try {
      // 初始化
      mySmartUpload.initialize(config, request, response);
      // 上传
      mySmartUpload.upload();
      for (int i = 0; i < mySmartUpload.getFiles().getCount(); i++) {
        com.jspsmart.upload.File myfile = mySmartUpload.getFiles()
            .getFile(i);
        String fileName = myfile.getFileName();
        // 保存
View Full Code Here

Examples of com.knowgate.hipergate.ProductLocation.upload()

    oLoca.setLength(oFile.length());
    oLoca.replace(DB.id_cont_type, oLoca.getContainerType());
    oLoca.store(oConn);

    if (sFileProtocol.equalsIgnoreCase("ftp://"))
      oLoca.upload(oConn, oFileSys, "file://" + sDirPath, sFileName, "ftp://" + sFileServer + sWrkAHome + sCatPath, sFileName);
    else
      oLoca.upload(oConn, oFileSys, "file://" + sDirPath, sFileName, sFileProtocol + sWrkAHome + sCatPath, sFileName);

    ActivityAttachment oAttach = new ActivityAttachment();
    oAttach.put(DB.gu_activity, getString(DB.gu_activity));
View Full Code Here

Examples of com.knowgate.hipergate.ProductLocation.upload()

    oLoca.store(oConn);

    if (sFileProtocol.equalsIgnoreCase("ftp://"))
      oLoca.upload(oConn, oFileSys, "file://" + sDirPath, sFileName, "ftp://" + sFileServer + sWrkAHome + sCatPath, sFileName);
    else
      oLoca.upload(oConn, oFileSys, "file://" + sDirPath, sFileName, sFileProtocol + sWrkAHome + sCatPath, sFileName);

    ActivityAttachment oAttach = new ActivityAttachment();
    oAttach.put(DB.gu_activity, getString(DB.gu_activity));
    oAttach.put(DB.gu_product, oProd.getString(DB.gu_product));
    oAttach.put(DB.gu_location, oLoca.getString(DB.gu_location));
View Full Code Here

Examples of com.knowgate.hipergate.ProductLocation.upload()

    oLoca.setLength(oFile.length());
    oLoca.replace(DB.id_cont_type, oLoca.getContainerType());
    oLoca.store(oConn);

    if (sFileProtocol.equalsIgnoreCase("ftp://"))
      oLoca.upload(oConn, oFileSys, "file://" + sDirPath, sFileName, "ftp://" + sFileServer + sWrkAHome + sCatPath, sFileName);
    else
      oLoca.upload(oConn, oFileSys, "file://" + sDirPath, sFileName, sFileProtocol + sWrkAHome + sCatPath, sFileName);

    Attachment oAttach = new Attachment();
    oAttach.put(DB.gu_contact, getString(DB.gu_contact));
View Full Code Here

Examples of com.knowgate.hipergate.ProductLocation.upload()

    oLoca.store(oConn);

    if (sFileProtocol.equalsIgnoreCase("ftp://"))
      oLoca.upload(oConn, oFileSys, "file://" + sDirPath, sFileName, "ftp://" + sFileServer + sWrkAHome + sCatPath, sFileName);
    else
      oLoca.upload(oConn, oFileSys, "file://" + sDirPath, sFileName, sFileProtocol + sWrkAHome + sCatPath, sFileName);

    Attachment oAttach = new Attachment();
    oAttach.put(DB.gu_contact, getString(DB.gu_contact));
    oAttach.put(DB.gu_product, oProd.getString(DB.gu_product));
    oAttach.put(DB.gu_location, oLoca.getString(DB.gu_location));
View Full Code Here

Examples of com.netflix.priam.aws.S3FileSystem.upload()

        MockS3PartUploader.setup();
        S3FileSystem fs = injector.getInstance(S3FileSystem.class);
        // String snapshotfile = "target/data/Keyspace1/Standard1/backups/201108082320/Keyspace1-Standard1-ia-1-Data.db";
        S3BackupPath backupfile = injector.getInstance(S3BackupPath.class);
        backupfile.parseLocal(new File(FILE_PATH), BackupFileType.SNAP);
        fs.upload(backupfile, backupfile.localReader());
        Assert.assertEquals(1, MockS3PartUploader.compattempts);
    }

    @Test
    public void testFileUploadFailures() throws Exception
View Full Code Here

Examples of cu.ftpd.user.statistics.StatisticsEntry.upload()

        }
    }

    public void upload(String username, String section, long bytes, long time) {
        StatisticsEntry us = getUserStatistics(username, section);
        us.upload(bytes, time);
        store(us);

        if (!"default".equals(section)) {
            // always add the data to the default section as well, since that keeps track of ALL the statistics
            us = getUserStatistics(username, "default");
View Full Code Here

Examples of it.eng.spago.dispatching.httpchannel.upload.IUploadHandler.upload()

   
    IUploadHandler uploadHandler = UploadFactory.getHandler(uploadManagerName);
    if (uploadHandler instanceof RequestContextIFace) {
        ((RequestContextIFace) uploadHandler).setRequestContext(requestContext);
    }
    uploadHandler.upload(item);
    }
   
   
    /**
     * Handle simple form.
View Full Code Here

Examples of it.sauronsoftware.ftp4j.FTPClient.upload()

                try {
                    client.changeDirectory("/");
                    if (StringUtils.hasText(_workingFolder)) {
                        client.changeDirectory(_workingFolder);
                    }
                    client.upload(_fileName, is, 0, 0, null);
                } finally {
                    is.close();
                }
            }
        }
View Full Code Here

Examples of it.sauronsoftware.ftp4j.FTPClient.upload()

        FTPClient client = new FTPClient();
        client.connect(Shared.getConfig("ftpBackupAddr"), Integer.parseInt(Shared.getConfig("ftpPort")));
        client.login(Shared.getConfig("ftpBackupUser"), Shared.getConfig("ftpBackupPassword"));
        client.changeDirectory("/" + Shared.getConfig("storeName"));
        File f = new File(Constants.tmpDir + fileName);
        client.upload(f);
        client.disconnect(false);

    }

    static void sendSells(String myDay, ClosingDay cd , String ansMoney ) throws SQLException, IOException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.