I use the file upload feature pack. For specifing the uploadfolder i use a session var and that works most of the time.
The session var is dynamic. It depends on the ID of client that i'm currently viewing/editing. For each client i have a submap (so for client 000332 the uploadfolder is c:\data\000332, for client 000022 the uploadfolder = c:\data\000022.
So when i go to the detailview (of a client) i do an ajax call back to set the session var to the right value. This works but with the callback there is a time delay. So i wanted to overcome that problem and in put the right value in a temporary var.
For downloading the files this works great . See image
file_download.jpg
There is use a datafield "map" as the folder to download from. Works perfect. No timimng issues and what so ever
So if possible i want to use the same field to specify the uploadfolder
upload file.jpg
If i put in the name from my session var in uploadfolder (session.__protected__uploadfolder) it works most of the time but if i could use a the datafield "map" it would work perfect. The only thing i cannot get the datafield working. I tried several placeholders as <map> and {map} but no luck.
So has anybody experienced this before and is it even possible what i want or do i have to go to the user defined file upload and write my own code?
The session var is dynamic. It depends on the ID of client that i'm currently viewing/editing. For each client i have a submap (so for client 000332 the uploadfolder is c:\data\000332, for client 000022 the uploadfolder = c:\data\000022.
So when i go to the detailview (of a client) i do an ajax call back to set the session var to the right value. This works but with the callback there is a time delay. So i wanted to overcome that problem and in put the right value in a temporary var.
For downloading the files this works great . See image
file_download.jpg
There is use a datafield "map" as the folder to download from. Works perfect. No timimng issues and what so ever
So if possible i want to use the same field to specify the uploadfolder
upload file.jpg
If i put in the name from my session var in uploadfolder (session.__protected__uploadfolder) it works most of the time but if i could use a the datafield "map" it would work perfect. The only thing i cannot get the datafield working. I tried several placeholders as <map> and {map} but no luck.
So has anybody experienced this before and is it even possible what i want or do i have to go to the user defined file upload and write my own code?
Comment