DMXzone File System Connector Support Product Page

after uploading an image file, i want to rename it and its thumbnail

Asked 26 Sep 2018 13:44:51
has this question
26 Sep 2018 13:44:51 Glenn Williams posted:
hello tech support,

after uploading an image file, i want to rename it and its thumbnail.

for example, i can upload a local file named "u1.png" and insert the record into the database. however, i need to be able to rename the file to "trc_u1.png" so that i can know it belongs to the company ID "trc". we will have different companies uploading their images and i would like to prefix their image with their company ID. the company ID will be put into session when they log in and is availabe to the ASP page as a session variable.

selected ( local ): u1.png

uploaded ( server ): u1.png
resized saved 1 ( server ): u1.png
resized saved 2 ( server ): u1_thumb.png

renamed ( server ): trc_u1.png
renamed ( server ): trc_u1_thumb.png

What component do i need to get to be able to do that? I am thinking it might be DMXzone "File System Connector" but i am not sure if it works with "App Connect" and "Image Processor".

i am using App Connect and Image Processor and they are working thanks to earlier support from Teodor.



Replied 27 Sep 2018 07:22:07
27 Sep 2018 07:22:07 Teodor Kuduschiev replied:
Hi Glenn,

Do you need to rename it during the upload process or AFTER upload, when it is already saved as xyz.jpg on the server and in the database?
Replied 27 Sep 2018 13:17:31
27 Sep 2018 13:17:31 Glenn Williams replied:
Hi Teodor,

if possible, i think it would be better to rename it during the upload. that way, everything is done as one process. however, i am open to either way.

i know i can use the template. what i don't know is how to get the session variable into the template.

right now, i am using... trc_{name}{ext}
i tried to use ... <% Session("svBankID" %>_{name}{ext}

but that did not work.

Replied 28 Sep 2018 07:53:45
28 Sep 2018 07:53:45 Teodor Kuduschiev replied:
In server connect, under globals you will see sessions. Define your session there - create a session with the name it has.

After you defined the session you can use it like:


Reply to this topic