Hi
I'm now working on a E-learning program using ColdFusion programming language. There are 3 main parties involve on using this program - lecturers, students and the centre administrator.
In the lecturer section, there is one portion which allows the lecturer to upload their html files which have been created by themselves. These html files may contains images in it. The purpose of these html files are the references materials for students to retrieve in the E-learning website.
Here's where my problem occurs. In my source code, I have set a specific path to keep the html files as well as the images in it. For instance,
whenever there is a file n image being uploaded by the lecturer, I'll rename them as:
C:\Inetpub\C:\Inetpub\
While for the HTML file being created by the lecturer himself, when u look at its source code, the path of the image could be something like C:\MyDocuments\chart90.gif
So, once this HTML file is uploaded to the e-learning server, the files will be renamed as topic1.html and the image will be renamed as image1.gif. With this, there's no problem on publshing this HTML file on the E-learning website, but the chart90.gif will not be able to displayed as all since the source code is supposed to link as C:\MyDocuments\chart90.gif while my program has renamed it as C:\Inetpub\
Is there any functions or commands in CF which is able to detect all <img scr..> tag whenever a HTML file is uploading to the server??? And once a <img scr..> tag is detected on teh file uploading, the path of that image linking will be changed over to the path i want it to be immediately.
Is this possible???
Urgent help is needed, thank you.
I'm now working on a E-learning program using ColdFusion programming language. There are 3 main parties involve on using this program - lecturers, students and the centre administrator.
In the lecturer section, there is one portion which allows the lecturer to upload their html files which have been created by themselves. These html files may contains images in it. The purpose of these html files are the references materials for students to retrieve in the E-learning website.
Here's where my problem occurs. In my source code, I have set a specific path to keep the html files as well as the images in it. For instance,
whenever there is a file n image being uploaded by the lecturer, I'll rename them as:
C:\Inetpub\C:\Inetpub\
While for the HTML file being created by the lecturer himself, when u look at its source code, the path of the image could be something like C:\MyDocuments\chart90.gif
So, once this HTML file is uploaded to the e-learning server, the files will be renamed as topic1.html and the image will be renamed as image1.gif. With this, there's no problem on publshing this HTML file on the E-learning website, but the chart90.gif will not be able to displayed as all since the source code is supposed to link as C:\MyDocuments\chart90.gif while my program has renamed it as C:\Inetpub\
Is there any functions or commands in CF which is able to detect all <img scr..> tag whenever a HTML file is uploading to the server??? And once a <img scr..> tag is detected on teh file uploading, the path of that image linking will be changed over to the path i want it to be immediately.
Is this possible???
Urgent help is needed, thank you.
