Hi,
I used 6.x-2.0-alpha10, configured and tested it. I successfully created a new gallery but when I uploaded a image, I was able to get Title field required error after uploading the images and when the title and caption textbox appear. I filled up the title but with no luck it still prompts me that title field is required.

CommentFileSizeAuthor
#10 messed-up upload.png60.73 KBdddave

Comments

dddave’s picture

Title: Title required in uploading images » Messing with the upload function (Title required error; false "Submit Images button)
Category: support » bug

I am trying to recreate this behaviour. After you first get the "title required" message did you hit the save button or the "Submit Images" button? The latter seems to create some advanced weirdness (see below). ;)

BUT: Giving a title and hitting save never fails on my site. Any additional infos about your workflow and settings so that we can recreate the behaviour?

@Maintainers

There is definitly something weird going on. Do the following:

1. Click on "Upload Images" and submit an image.

2. On the next screen leave the title field empty and hit "Save". This correctly throws a "Title required" error.

The problem is that now the screen is some kind of mixture of the interface of step 1 and step 2. Therefore you have an "Submit Images" button and a "Save" button. Hitting the former doesn't upload the image but the filesize seems to be discounted against the user's limit.

To increase the mess leave the title field empty and hit "Submit Images" again. ;)

dddave’s picture

Title: Messing with the upload function (Title required error; false "Submit Images button) » Messing with the upload function (Title required error; Interface woes)
Version: 6.x-2.0-alpha10 » 6.x-2.x-dev
dbeall’s picture

The problem is that now the screen is some kind of mixture of the interface of step 1 and step 2. Therefore you have an "Submit Images" button and a "Save" button. Hitting the former doesn't upload the image but the filesize seems to be discounted against the user's limit.

I haven't looked at the latest dev yet about the 2 buttons..

But just using the 'Submit Images' button would upload the images to the directory and count the user totals and total file size, even if the upload failed or was refused due to limits.

partly related to issue reported October 10, 2009 for the dev version:
#601186: Image total count not being flushed on failed uploads

dbeall’s picture

I suppose the upload with submit images may have to be done to a tmp directory untill the save is used to actually add the image info to the gallery and the database..
but, (this user is a dummy) and I have no patch to do that.

EDIT: I just installed the latest dev Nov 5th and I don't see two buttons..? just submit images on the upload and manage page ... and save on the sort and manage images page

dddave’s picture

Did you try to save with an empty title field?

dbeall’s picture

lol... Now i seee what your talking about
submit images, and save.

If you hit 'submit images' a second time after the you get the two buttons:
'submit images', 'save' and another 'save'

the second time you try to 'submit images':
warning: Invalid argument supplied for foreach() in C:\wamp\www\Drupal6\sites\all\modules\node_gallery\node_gallery.pages.inc on line 194.

I had to edit this post.. got confused which buttons I was clicking

dbeall’s picture

it looks like there needs to be a default title 'on click' if someone tries to do this.

kmonty’s picture

Priority: Normal » Minor

People in generally shouldn't be leaving the title field blank so I am not going to prioritize this. What I should probably do is have a check on save that if the title field is empty to default it to the image filename. Again, this is not our biggest concern.

Of course, I'll commit any patch provided!

dzieyzone’s picture

after uploading the image, there is a default title for the image which is the name of the image when you upload it. whether you retain that tile, a "title required" error still appears.

dddave’s picture

StatusFileSize
new60.73 KB

Just for kicks I tried again and this still exists. Perhaps something we should have in mind for NG3 to prevent there.

justintime’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev

Going to bump this up to NG3.

scroogie’s picture

I don't think this is an issue in NG3. The only thing we could do is to add the title automatically to the image filename on hook_node_form_submit()?

justintime’s picture

Version: 6.x-3.x-dev » 6.x-2.x-dev
Status: Active » Closed (won't fix)

Yeah, it isn't a bug right now in NG3, and if it does happen later down the road due to swfupload or manage images tab we can open a new issue. Moving to a won't fix for NG2.