Examples of FileUpload


Examples of org.platformlayer.ops.FileUpload

    }

    if (shouldUpload) {
      target.mkdir(transportDirectory);

      FileUpload upload = FileUpload.build(script);
      upload.path = scriptFile;
      upload.mode = "0755";
      target.doUpload(upload);
    }
View Full Code Here

Examples of org.primefaces.component.fileupload.FileUpload

public class FileUploadRenderer extends org.primefaces.component.fileupload.FileUploadRenderer {
   
    @Override
  public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        FileUpload fileUpload = (FileUpload) component;
        String clientId = fileUpload.getClientId(context);
    String style = fileUpload.getStyle();
        String styleClass = fileUpload.getStyleClass();
        styleClass = (styleClass == null) ? FileUpload.MOBILE_CONTAINER_CLASS : FileUpload.MOBILE_CONTAINER_CLASS + " " + styleClass;
        if(fileUpload.isDisabled()) {
            styleClass = styleClass + " ui-state-disabled";
        }
       
        writer.startElement("div", fileUpload);
        writer.writeAttribute("id", this, null);
View Full Code Here

Examples of org.slim3.controller.upload.FileUpload

    }

    @Override
    public void handle() {
        try {
            FileUpload upload = createFileUpload();
            FileItemIterator iter = upload.getItemIterator(request);
            while (iter.hasNext()) {
                FileItemStream item = iter.next();
                String name = item.getFieldName();
                InputStream stream = item.openStream();
                if (item.isFormField()) {
View Full Code Here

Examples of org.uberfire.client.common.FileUpload

        form = new WellForm();
        form.setAction( getWebContext() + "/maven2" );
        form.setEncoding( FormPanel.ENCODING_MULTIPART );
        form.setMethod( FormPanel.METHOD_POST );

        final FileUpload up = new FileUpload( new Command() {
            @Override
            public void execute() {
                showUploadingBusy();
                form.submit();
            }
        } );
        up.setName( HTMLFileManagerFields.UPLOAD_FIELD_NAME_ATTACH );

        form.addSubmitHandler( new Form.SubmitHandler() {
            @Override
            public void onSubmit( final Form.SubmitEvent event ) {
                String fileName = up.getFilename();
                if ( fileName == null || "".equals( fileName ) ) {
                    BusyPopup.close();
                    Window.alert( M2RepoEditorConstants.INSTANCE.SelectFileUpload() );
                    event.cancel();
                }
            }
        } );

        form.addSubmitCompleteHandler( new Form.SubmitCompleteHandler() {
            public void onSubmitComplete( final Form.SubmitCompleteEvent event ) {
                if ( "OK".equalsIgnoreCase( event.getResults() ) ) {
                    BusyPopup.close();
                    Window.alert( M2RepoEditorConstants.INSTANCE.UploadedSuccessfully() );
                    hiddenFieldsPanel.setVisible( false );
                    hiddenArtifactIdField.setText( null );
                    hiddenGroupIdField.setText( null );
                    hiddenVersionIdField.setText( null );

                    searchEvent.fire( new M2RepoSearchEvent() );

                    up.getElement().setPropertyString( "value", "" );
                    hide();
                } else if ( "NO VALID POM".equalsIgnoreCase( event.getResults() ) ) {
                    BusyPopup.close();
                    Window.alert( M2RepoEditorConstants.INSTANCE.InvalidJarNotPom() );
                    hiddenFieldsPanel.setVisible( true );
View Full Code Here

Examples of play.data.FileUpload

                    if (uploads == null) {
                        uploads = new ArrayList<Upload>();
                        Request.current().args.put("__UPLOADS", uploads);
                    }
                    try {
                        uploads.add(new FileUpload(fileItem));
                    } catch (Exception e) {
                        // GAE does not support it, we try in memory
                        uploads.add(new MemoryUpload(fileItem));
                    }
                    putMapEntry(result, fileItem.getFieldName(), fileItem.getFieldName());
View Full Code Here

Examples of yalp.data.FileUpload

                    if (uploads == null) {
                        uploads = new ArrayList<Upload>();
                        Request.current().args.put("__UPLOADS", uploads);
                    }
                    try {
                        uploads.add(new FileUpload(fileItem));
                    } catch (Exception e) {
                        // GAE does not support it, we try in memory
                        uploads.add(new MemoryUpload(fileItem));
                    }
                    putMapEntry(result, fileItem.getFieldName(), fileItem.getFieldName());
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.