Kostogher
|
Posted: 11/04/2003, 1:31 AM |
|
I have images directory where I upload pictures. In this directory there is no index or other pages, just pictures. On net server is not allowed to view files in directory because that kind of settings.
How can I view what pictures are in directory.
What I have to create?
Thanks,
|
|
|
ryan
|
Posted: 11/04/2003, 3:26 PM |
|
many possibilities if you want that directory to be displayed then you
must ask your systems admin for the proper directory setting.
If you cannot index the picture that means what is your way of showing
that pictures on your code? You need a database table for that like :
ID-------filepath
1--------img1.gif
2--------img2.gif
5--------img5.gif
And you can then link that image using it's ID
<img src={filepath} ... />
I do not exactly get your specification but to show images I have to use this
technique and this one http://haneng.com/Code/javascript/2/index.html
the Image Viewer code is available on http://haneng.com/Code.asp
|
|
|
Kenstor
|
Posted: 11/05/2003, 1:00 AM |
|
If I save picture in base on what way can call it back (path). With WYSIWYG editor I have to write path, but I don't know how, if is saved in base.
|
|
|
ryan
|
Posted: 11/05/2003, 3:31 AM |
|
ImageTable
ID(autoincrementing int)----------path(nvarchar[150])
1---------------------------------img/file1.img
2---------------------------------img/file2.img
3---------------------------------img/file3.img
4---------------------------------img/file4.img
5---------------------------------img/file5.img
6---------------------------------img/file6.img
7---------------------------------img/file7.img
when you have uploaded the images to img/folder you can generate a grid in CCS
then add that path as
<!--begin grid-->
<tr>
<td>{ID}</td>
<td><img src="{path}" alt="{path}" /></td>
</tr>
<!--end grid-->
|
|
|