Put what in a different directory?

On 3/15/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
Hello,
  can you put it in a different directory, sicne that looks like is the problem?
or is there a limitation for name of file?

regards

 marco

On 3/15/06, Arash Bijanzadeh <[EMAIL PROTECTED]> wrote:
it is no more strange if I try to upload a image I am getting this error message:

14:55:49,196 ERROR [MultipartRequestWrapper] Exception while uploading file.
org.apache.commons.fileupload.FileUploadException : Processing of multipart/form-data request failed. /temp/upload_00000003.tmp (No such file or directory)
        at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429)
        at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(MultipartRequestWrapper.java:81)

I am using Facelets and seam on jboss head.
My page is :


......
<ui:define name="body">

    <h2><h:outputText value="upload"/> </h2>
    <h:form id="form"  enctype="multipart/form-data">
        <input type="hidden" name ="origin"  value="#{origin}"/>
        <!--<h:panelGrid id="myvar" columns="2">-->
            <h:outputLabel for="" value="#{messages['name']}" class="label"/><br/>

            <t:inputFileUpload id="file"
                                           accept="*/*"
                                           value="#{ fileLogic.upFile}"
                                           storage="file"
                                           styleClass="fileUploadInput"
                                           required="true"/><br/>
...............
And my bean is :


..................
private String reposPath = "/home/as/repository/";
    private String searchString;

    private UploadedFile upFile;

    public UploadedFile getUpFile()
    {
        return this.upFile;
    }

    public void setUpFile(UploadedFile upFile)
    {
        this.upFile = upFile;
    }
..........................................
and the upload method actually doing nothing but writing a log message right now!


On 3/15/06, Marco Mistroni < [EMAIL PROTECTED]> wrote:
hello,
  mm don't think so.. i have same functionality working just fine...
could you post page & bean & faces-config?

hth
 marco


On 3/15/06, Arash Bijanzadeh <[EMAIL PROTECTED]> wrote:
Every thing seems ok. Could it be a Facelet problem?


On 3/14/06, Marco Mistroni < [EMAIL PROTECTED]> wrote:
Hello,
  have a look at myfaces examples, copy the fileUpload bean
more likely, some of your bean properties are incorrect

hth
 marco


On 3/14/06, Arash Bijanzadeh <[EMAIL PROTECTED]> wrote:
Trying to upload a file I am getting a java.lang.IllegalArgumentException: argument type mismatch exception in the setter method of uploadedFile.
I just have a  private UploadedFile upFile in my bean and
  <t:inputFileUpload id="file"
                                           accept="*"
                                           value="#{fileLogic.upFile}"
                                           storage="file"
                                           styleClass="fileUploadInput"
                                           required="true"/>

in the page.


--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.




--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.




--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.




--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.

Reply via email to