NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Niels Larsen on September 22, 2015, 12:34:07 AM

Title: change upload path for Redactor images?
Post by: Niels Larsen on September 22, 2015, 12:34:07 AM
Hi

On a form I have a text field (redactor). And dragging images into works great.
But I would like to have a folder for each record holding the Redactor imbedded images. How to set the path?

Regards Niels
Title: Re: change upload path for Redactor images?
Post by: MyBrainIsFull on September 22, 2015, 07:33:58 PM
Its easy,  for a detailed explanation go to the net talk user group webinar 37

http://www.capesoft.com/accessories/NetTalkUserGroup.htm (http://www.capesoft.com/accessories/NetTalkUserGroup.htm)

A direct link to the show is here
http://www.capesoft.com/ftp/public/webinars/UG_NT037_20140925_NetTalkUserGroupMeeting37.wmv (http://www.capesoft.com/ftp/public/webinars/UG_NT037_20140925_NetTalkUserGroupMeeting37.wmv)
Title: Re: change upload path for Redactor images?
Post by: Niels Larsen on September 23, 2015, 03:21:16 AM
Thanks - works great... but. Something goes wrong if i use the loggedin path insted of the uploads path.
Any ideas??

Title: Re: change upload path for Redactor images?
Post by: MyBrainIsFull on September 23, 2015, 07:05:15 PM
Help me here Niels to understand what you see as a "loggedin"  path ?
Are you changing where the server points to when the user logs in ?
To help me understand what you are doing, either post a small app showing the problem
OR try this below.

I have a quiz app in C:\MyApp    I do this for students doing a quiz, they upload redactor images to  C:\MyApp\Web\Uploads\Image101.PNG

I create a directory as C:\MyApp\Web\Students\Niels

then rename the image to be saved as
C:\MyApp\Web\Students\Niels\Image101.PNG

This way it saves it in your folder and I save the image filename in the TPS file as Students\Niels\Image101.PNG   as its all  "Web"  relative filenames

Is this what you are trying to do ?
Title: Re: change upload path for Redactor images?
Post by: Niels Larsen on September 28, 2015, 10:51:42 AM
Now it works. I had a \\ in my path.

Thanks!!!!!