every Image (Database) is invalid type

Hi,

i have a form an there are 3 possiblities to upload an image. that is optional and not marked as required in scriptcase. in the database its a BLOB.

Now if i try to update the dataset via the form i get an error “invalid type” for every “Image (Database)”-Field. I did not upload any images so these are empty.

so why is the empty image an invalid type?

thanks a lot,

mati

Re: every Image (Database) is invalid type

turn on the debug mode and lets see whats going on.

Re: every Image (Database) is invalid type

hi, thanks for your answer.

I turned debug on, but i dont get any errors. i just can see some sql-statements, but when i hit the “update”-button i just get the error-field with the error-messages…

any other ideas?

thanks a lot,

mati

Re: every Image (Database) is invalid type

Hi,

now i changed it to document and i get the “(upload failed)”-error message. even if i dont upload a file. i just keep the field clear and still get the error.

i tried do hide the block or set the upload-field to read_only but i still get the error.

is that a bug or what am i doing wrong?

thanks for your help,

mati

Re: every Image (Database) is invalid type

Show us a printscreen with the application with the debug mode turned on …

Re: every Image (Database) is invalid type

Hi,

thanks for your answer.

here is a screen:

i created the screenshot after i hit “update”.

the second error is just because i change the locale-settings for the screenshot. but the first one is still there. i just want to be that field optional.

thanks for your help,

mati

Re: every Image (Database) is invalid type

Whats your database? R u using the last sc version?

Re: every Image (Database) is invalid type

hi, thanks for your answer.

i am using mysql. the field-type is BLOB or LONGBLOB.

scriptcase-version is 5.01.0014. i updated it this morning.

its wired, right?

thanks, mati

Re: every Image (Database) is invalid type

Hi Mati, how did you finally solve this problem? I am suffering from the same situation

Re: every Image (Database) is invalid type

I created the same fields in a different (but still a form-)application and its working.

I dont know why, maybe its not working with more than one pages or if you have more than a maximum number of fields.

could you describe your application a little bit? maybe we find something in common.

thanks a lot,

Matin

Re: every Image (Database) is invalid type

This bug has been fixed.

Its using pages/blocks … hiddin the field.

Re: every Image (Database) is invalid type

so it should work after an update?

Re: every Image (Database) is invalid type

Hi Mati, can you please make your reply much clearer, what exactly should I do to get rid of the error?

Re: every Image (Database) is invalid type

Use field image and hidden them in a block or page and try to submit.

Re: every Image (Database) is invalid type

I have found out that the image(database) field does not work on a form with multiple pages, if you want the form to appear to have multiple pages, create blocks, put them under one page and edit them to be tabs.

Re: every Image (Database) is invalid type

hi, the problem still occurs… will there be an update soon to get this fixed?

thanks a lot,

mati

Re: every Image (Database) is invalid type

probably this week an update will be released.

Re: every Image (Database) is invalid type

Do you have to use pages? if you don’t have to, create a block for each page you would have created, assign the fields the blocks and edit the next field in the blocks to be tabs. This worked form, it allowed me to have the same effect withouth having to use pages.

Re: every Image (Database) is invalid type

This bug still persists? Did you generated the source and deployed again?