Trying to make one file upload to database with name

What type of data type for the database…

file = text

fileID integer

FileName Text?

Hello @medleyr3
Could you please clarify your question?

file = BLOB

rest are ok

1 Like

@mrbdrm You cannot save file in a bolb field.
You upload it and save its name/path to it in a varchar field for example.

1 Like

so we cant upload to the database in wappler?

You cannot store a file into a BLOB field, we do not support binary fields for that.
You upload the file to the server and store its name or path to the database!

i know of the two methods but i thought wappler support both.

its even better to save to file on server to prevent large database size

1 Like