If attachments are added to the node using the 'Attach' button they will be lost after then node is saved and then viewed.

The only way to add an attachment is to add a single file and then save the node, avoiding the use of the 'Attach' button completely. Repeat for each attachment.

Users adding files with the 'Attach' button are going to loose everything and have to repeat the process over and over until they work out it's not gonna work. Frustrating.

This error occurs on a fresh 4.7.0 install, and on my 4.6->4.7 upgraded site.

Using FireFox 1.5.0.3 as the browser (incase it's JavaScript related).

CommentFileSizeAuthor
#10 upload.module_0.png81.35 KBmbchandar
#9 upload.module.png81.35 KBmbchandar

Comments

killes@www.drop.org’s picture

Priority: Critical » Normal

I am using a similar version of FF and cannot reproduce it. Maybe a server issue? Downgrading.

budda’s picture

I'm not sure (without delving deeper) what the difference is between using the 'Attach' button and the node 'Submit' button as far as uploading files goes.

It's as if the ajax is not actually uploading the file to the server, yet no JavaScript errors occur.

The server setup is a pretty standard LAMP configuration - Apache2.

I've ruled out file permissions because saving the node works fine (as mentioned in the original issue post).

edgauthier’s picture

Firefox 1.5.0.3 and 4.7RC4 - I'm noticing the same problem.

Using the attach button shows the progress bar and appears to upload the file. When submitting the node, the attachment is gone.

If I don't press the attach button and just submit, the file is uploaded and works fine.

DaveNotik’s picture

Priority: Normal » Critical

Using 4.7.0, choosing Attach successfully uploads the file and adds it to the list. But upon clicking Preview or Submit, the file is lost and does not appear in the list. Checking my /files/ directory on the server reveals that the file is indeed not physically present.

I noticed this issue, and tried Submit without Attach, and the file uploaded and stuck successfully.

My client had called with this issue ("I can't upload our newsletter!"), same for me on repeated attempts (Firefox).

I'd say this is critical. Upgrading.

mbchandar’s picture

Assigned: Unassigned » mbchandar
Priority: Critical » Minor
Status: Active » Closed (fixed)

hi,

i checked with the latest version of drupal code from cvs.

it happened for me like this.

1. i browsed the files and selected and then attached.
2. if i pressed preview button, that time it is not saved.
3. only after clicking on submit button, it saved to the files folder.

budda’s picture

Priority: Minor » Critical
Status: Closed (fixed) » Active

mbchandar - what web browser are you using? if you don't say, and the bug occurs for many others, then it's not minor at all!

mbchandar’s picture

hi,

i use firefox 1.5.0.2 under Fedora Core 5.

budda’s picture

mbchandar: Could you please try using the latest FireFox update, as mentioned in the original bug report.

For the record, I was using a MS Windows XP machine with FireFox.

mbchandar’s picture

Status: Active » Closed (fixed)
StatusFileSize
new81.35 KB

hi budda,

i used the latest version of drupal from cvs and firefox 1.5.0.3 in fedora core 5.

following is the process what i did,
1. create content -> attached 3 files as per your description.
2. clicked submit button and then it saved.
3. now i am able to view that node with three files

mbchandar’s picture

StatusFileSize
new81.35 KB

hi budda,

i used the latest version of drupal from cvs and firefox 1.5.0.3 in fedora core 5.

following is the process what i did,
1. create content -> attached 3 files as per your description.
2. clicked submit button and then it saved.
3. now i am able to view that node with three files

also check out the screenshot i attached

budda’s picture

This bug is against 4.7 of Drupl, rather than CVS - not sure if that will make a difference, but you never know.

Maybe it's Windows FireFox build related? Anyone with a Mac & FF 1.5.0.3 care to comment?

crashpoint’s picture

I installed drupal on Suse linux 9.1 and am having Mozilla Firefox 1.5.0.1. The error is replicated in this configuration also.

crashpoint’s picture

I followed the above method of not using the attach button at all and that seemed to upload the attachment. But when I hover over the link of the attached file when I submit it the path shown is relative to the root of the site

for eg.

Suppose the site name is http://www.examplesite.com/drupal

And drupal has been unzipeed in /var/home/drupal

if I attach a file /var/home/drupal/xyz.pdf through the method described above it is attached but on moving over the link the path shown

http://www.examplesite.com/drupal/var/home/drupal/xyz.pdf

how should i go about solving this ? thanks in advance

mbchandar’s picture

hi Crashpoint,

I tried the same way how u tried. still i am not able to replicate any error. i am using Fedora Core 5, firefox 1.5.0.3, apache 2, php 5.

still it works fine.

kilolima’s picture

I have the same problem in FF 1.08 and Konqueror 3.52.-0.1 on Fedora Core 4. Can't attach any files at all and feeling pretty dumb.

lukanova’s picture

Same here, attaching files doesn't work at all. Why is this bug closed, while there was no solution posted? Using firefox 1.5.0.4 (on Debian Linux) and fresh install of Drupal 4.7.3, 2006-08-02. The file does not upload at all and does not appear in the list.

killes@www.drop.org’s picture

to repeat myself: It works for me. Check that your PHP/Apache combo allows uploads at all and that your file isn't too big.

lukanova’s picture

yes,
i appologise. being (a bit) rude quickly proves you wrong. it works perfectly, here too, with correct apache/php settings (had to turn on file uploads).