Filedocuments will need to be converted too between version 3 and 4 of Mendix, this has to do with upgrading our object identifiers to 64 bits. I'm afraid that in this case you will need to have your files present when migrating.
Edit: updated after reply
No you cannot simply put the files in the deployment files folders, FileDocuments in Mendix have additional properties and are named and sorted in folders according to their object identifier.
@ Pieter: I don´t fully understand this. Could you explain a bit more? My reckoning is this: If the file names are based on the identifiers inside the database, shouldn´t new files be added with non-conflicting names and in the proper folder solely based on the database information? Regardless of physical files and folders already present? Thus making files created locally with the database downloaded from the cloud usable with those in the cloud by copying the local files folder and merging it with the files folder in the cloud?
Hi Bas,
I'm not sure I explained correctly, but we're not doing a conversion from 3.2.2 to 4.x.x. Maybe there is a misunderstanding about the term 'conversion'. What I mean with conversion here is that we are going to migrate existing data from an 'old' non-Mendix application into our Mendix application. Does that change your answer?
@Sanjay I am not sure i understand you either ;] But a physical file document has a filename equal to the identifier of the file document in the database. Thus if you import all the records of an existing database in a local database without changing the physical file names you could end up with a lot of file documents that have a different identifier then file name.
If you add a new file afterwards things will just go fine. But how do you ensure that the existing identifiers point to the already existing files?
Thus if you import all the records of an existing database in a local database without changing the physical file names you could end up with a lot of file documents that have a different identifier then file name.
I think there is the misunderstanding, no filedocuments will be imported, only new files will be added. Maybe my first post was a bit fuzzy so let's forget my first post and I'll try to simplify :)
What I want to do boils down to this:
The locally created files should have correct names since it's based on the same database as in the cloud.
This should work right?