cancel
Showing results for 
Search instead for 
Did you mean: 

Upload fails

lborupj
Champ in-the-making
Champ in-the-making
Hi,

I've just installed the 1.4 community edition and I am not
able to upload content using the web interface. I get the following
javascript errors:

Warning: Form contains a file input, but is missing method=POST and enctype=multipart/form-data on the form.  The file will not be sent.
Source File: http://<domain>/alfresco/faces/jsp/content/add-content-dialog.jsp
Line: 0

Error: f.elements['add-content-upload-end:_link_hidden_'] has no properties
Source File: http://<domain>/alfresco/faces/jsp/content/add-content-dialog.jsp
Line: 343

Has any1 seen this before?
2 REPLIES 2

lborupj
Champ in-the-making
Champ in-the-making
I did some investigating to find the cause of uploads failings.
It seems like it a platform issue (somehow), coz if I load
the exact same alfresco.war on a windows box it works.
I otherwise deploy on FreeBSD.
Here's an exact copy of the problem..

First the windows version:

….
}
clear_add_2Dcontent_2Dupload_2Dstart();
//–></script></form>


And then the FreeBSD:


….
}
clear_add_2Dcontent_2Dupload_2Dstart();
//–></script>
….

As you might see - the </form> (end form) element is missing
for some reason…

lborupj
Champ in-the-making
Champ in-the-making
FYI I found the error and with a tad of hesitation I have to say its NOT an alfresco error.. The alfresco tomcat was setup behind an apache2 server with mod-rewrite which did some strange things to the html generated by alfresco.. So if you ever run into this problem.. check if you are using mod-rewrite..

well - i'll just shutup then 😉