When creating MindMup file straight from Google Drive (i.e. from the red "New" button on the GDrive web interface), a new browser windows is created opening the URL:
https://www.mindmup.com/gd?state=...
Where the state variable above contains a URL encoded json structure like:
{'action': 'create',
'userId': '[... Google User Unique Id ...]',
'folderId': '[... Google Drive Folder Id ...]'}
For the same user, the folderId variable changes depending on which folder the user was navigating inside the GDrive interface, but the userId variable never changes.
However, after that, the user is redirected to the URL:
https://www.mindmup.com/#m:new-g
And even though MindMup remembers that the file should be saved on Google drive, it apparently loses the information of the specific GDrive folder, since the only result of clicking on the "Save" button (which is correctly selecting GDrive) is to save the MindMup file to the root folder of GDrive for the logged-in user,
The first time this happens to a GDrive user can be very confusing, considering that:
- The file name is generated from the name of the central node
- It won't be present in the folder where the user initially created the MindMup file
- The icon in the GDrive root is not representative of MindMup: it's the standard "blue page" icon for every file of unknown format in GDrive.
Please consider preserving the original GDrive folder information (in a cookie or URL fragment) and using it to save the MindMup file in the proper location.
According to the documentation, saving a file to a specific folder is just a matter of passing the parents parameter to the POST request that creates the file.
When creating MindMup file straight from Google Drive (i.e. from the red "New" button on the GDrive web interface), a new browser windows is created opening the URL:
Where the
statevariable above contains a URL encoded json structure like:For the same user, the
folderIdvariable changes depending on which folder the user was navigating inside the GDrive interface, but theuserIdvariable never changes.However, after that, the user is redirected to the URL:
And even though MindMup remembers that the file should be saved on Google drive, it apparently loses the information of the specific GDrive folder, since the only result of clicking on the "Save" button (which is correctly selecting GDrive) is to save the MindMup file to the root folder of GDrive for the logged-in user,
The first time this happens to a GDrive user can be very confusing, considering that:
Please consider preserving the original GDrive folder information (in a cookie or URL fragment) and using it to save the MindMup file in the proper location.
According to the documentation, saving a file to a specific folder is just a matter of passing the
parentsparameter to the POST request that creates the file.