File-transfer error for a newly added Filed

Martin68

Well-known member
Hello there,

I am using Dadabik V11.0 on a MariaDB-Server.

I just added a new Field from type VARCHAR(250) for storing files - or filenames ...

A usual I set the type generic_file in Forms configurator.

While trying to add new files I get a file-transfer-error (German: Während der Datei-Übertragung trat ein Fehler auf.)

Any idea what could have gone wrong?

I have two fields for storing files in the table, the oriniganl works fine, the added one not.

Kind regards

Martin
 

Martin68

Well-known member
Addition:

- When creating new entries, I can upload files
- editing an existing entry and adding a new file doesn't work
 

eugenio

Administrator
Staff member
Hello,
the fact that one field works and the other doesn't is very strange, do they have exactly the same settings both in the DB and in dadabik?
Can you write here the name of both fields?
Are you using the new file uploader or the old?

Best,
 

Martin68

Well-known member
Hello Eugenio,

the settings could not be exact the same, cause the second field will only be used to store a decision at the end of life of the stored piece...

Settings in Database:

# Name Typ Kollation Attribute Null Standard
7 Genehmigung varchar(250) utf8_general_ci Ja NULL
17 Aufhebung varchar(250) utf8_general_ci Nein kein(e)

I use the new file-uploader ....

What's astonishing is, that new entries seems to work, at least a file could be uploaded....

Kind regards.

Martin
 

Martin68

Well-known member
Just checked:

- when inserting a new entry I can upload and save a file
- on changing an existing entry I got an upload-error....

really strange ...

Martin
 

eugenio

Administrator
Staff member
Hello Martin,
on the db, it seems the only difference is that for one field you allow NULL.
I don't know the dadabik settings (form configurator, permissions, custom functions that impact on those fields .. ) of the fields though.


It's very strange it works in insert and not in update and with the information you provide it's difficult to guess what could be the problem. My suggestion is to try to debug this way: copy code and db to create a twin application where you can change settings without worrying and start changing, step by step, the settings of the new field to make it more and more similar to the old one and see if at some point it starts working.

Best,
 

Martin68

Well-known member
Hi Eugenio,

while checking for differences I found the following:

Entering a new entry with a file uploaded to the new field "Aufhebung" and saving works, but I can't delete the entered file with the checkbox in edit-mode ...

i am a little bit depressed now ...

Martin
 

Martin68

Well-known member
I am a fool :

I have set field permissions for edit to "yes, but disabled" ....

Sorry for that :-(

Martin
 
Top