Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-32

Fileupload on google app engine

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 5.0.0, 6.0.0
    • Components
    • None

      https://sourceforge.net/tracker/?func=detail&aid=2974251&group_id=152762&atid=785194

      when i try to use the new ZK5 Fileupload component got this error:

      java.rmi.server.UID is a restricted class. Please see the Google App Engine developer's guide for more details.

      GAE donĀ“t allow to use java.rmi.server.UID and it is used in

      org.zkoss.zk.au.http.ZkFileItemFactory

      //-- FileItemFactory --//
      public FileItem createItem(String fieldName, String contentType,
      boolean isFormField, String fileName) {
      return new ZkFileItem(fieldName, contentType, isFormField, fileName,
      getSizeThreshold(), getRepository());
      }

      it extends DiskFileItemFactory

      org.apache.commons.fileupload.disk.DiskFileItemFactory

      /**

      • UID used in unique file name generation.
        */
        private static final String UID =
        new java.rmi.server.UID().toString()
        .replace(':', '').replace('-', '');

      I mean GAE does not allow to create files in the remote server. The only way to upload to GAE is here

      How do I handle multipart form data? or How do I handle file uploads to my app?
      http://code.google.com/intl/en/appengine/kb/java.html#fileforms

      My issue is to upload a file to ZK Window and record a ZK Image component with JDO

            Jenkins Jenkins
            asukachen asukachen
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: