+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Location of images uploaded using Image control

Location of images uploaded using Image control

10 posts, 0 answered
  1. Liam
    Liam avatar
    18 posts
    Registered:
    30 Jun 2010
    23 Sep 2010
    Link to this post
    Hi,

    I have a query about where images uploaded using the image control are stored. That is, if a user places an image control on a page and uploads an image not into a library but into "~/Images", where does the image end up being stored? I cannot seem to find such images in the database, sf_CmsBinaryContent seemed likely but those images don't end up there.

    If I enable the files provider for images and documents I can see that images uploaded through the images and documents module end up in a file structure under App_Data but still images uploaded via the image control to "~/Images" do not.

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Sep 2010
    Link to this post
    Hi Liam,

    "~/Images" should be a physical folder on the file system and in this case RadUpload saves the image to the server storage. If you choose to upload the image to a library, then the image goes to the database or/and file system. All items uploaded to images and documents no matter you use Nolics or Files provider are IContent objects. You can easily search for them inside sf_GCMetaData database table.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Liam
    Liam avatar
    18 posts
    Registered:
    30 Jun 2010
    23 Sep 2010
    Link to this post
    Hi Ivan,

    Thanks for the propt reply.

    It doesn't quite answer my query though. Yes it seems like ~?Images should be a physical folder in the file system but I have no such physical folder. So where do images upload to that option go?

    Here is the situation:
    * User places image control on the page
    * Selects and image and in the 'Where to upload?' options selects "~/Images" (i.e. not a library)
    * The image is successfully uploaded. In the mark-up of the page the src is "/Image/filname.gif"

    But just to repeat, there is no physical folder "/Images" in my system. And I only see an entry in sf_GCMetaData for images uploaded to a library.

    Thanks.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Sep 2010
    Link to this post
    Hello Liam,

    You must have images folder in the root of your project, otherwise you will get an error "Could not find a part of the path", because the RadUpload will not be able to file a storage to upload your files to the file system.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Liam
    Liam avatar
    18 posts
    Registered:
    30 Jun 2010
    23 Sep 2010
    Link to this post
    Hi,

    Thanks again for the very prompt response.

    No, I do not have an Images folder in the root of my project.

    I have experimented and tried in two Sitefinity project installations with the same outcome.

    So to repeat, when using the 'out-of-the-box' image control to upload an image and in the 'where to upload' option you select the radio button indicating "~/Images", the image successfully uploads without any error. I can see it on the page no problem. But there is no Images folder, so I assume it must be stored somewhere on the database.

    Thanks again.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Sep 2010
    Link to this post
    Hi Liam,

    Please watch attached short video. In the video I am showing you the behavior of the default control and how it works and where the files go when you  upload images to the file system. If your control behaves differently this is not the default SitefinityImage control and RadioButton selection does not reflect the actual place where the image goes. This means that the item goes the the database, so please check
    sf_GCMetaData database table as I suggested.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Liam
    Liam avatar
    18 posts
    Registered:
    30 Jun 2010
    28 Sep 2010
    Link to this post
    Hi,

    Thanks again for your response and video. I have confirmed the behaviour you explain when I run a brand new installation (3.7) on Windows Server 2003 (which is IIS 6). That is, I must have a physical "Images" folder in the root and the images are placed there. All OK.

    However, my usual test environment is a desktop which is the relatively old Windows XP with IIS5.1. I am sorry that I did not make this clearer earlier. When I install the exact same brand new installation on my desktop with IIS5.1 I do *NOT* appear to need that "Images" folder. That is, I do the clean install, I do *NOT* create the "images" folder, but I still CAN upload images to the supposed (missing) Images folder. The images DO upload successfully, they CAN be seen in the user interface and when editing the pages and image controls in the administration interface. BUT there is no Images folder in the "files" menu of the administration interface and there is no physical Images folder on the disk when I search in Windows Explorer (it does not even appear to be a hidden or system folder). There is simply no trace of where Sitefinity is placing those images.

    So, to recap. Yes, I see exactly what you mean in Windows Server 2003/IIS6. But I do not experience the same behvaiour on XP/IIS5.1. Why is this different? It "works" in IIS5.1 but where is Sitefinity keeping the "Images" folder in an old IIS5.1 environment?

    Thanks for your time.
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Sep 2010
    Link to this post
    Hi Liam,

    When you add the image on a page and observe the link with FireFox from where the image comes from? Have you checked this? What is the image extension?

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Liam
    Liam avatar
    18 posts
    Registered:
    30 Jun 2010
    29 Sep 2010
    Link to this post
    Hi Ivan,

    Yes I have viewed the source of pages where I have added images in this way. The src of the image tags appears as if those images were in a physical folder ‘Images’. But there is no such physical folder on my system.

    Here is an example of an image tag for one such image:
    <img id="ctl00_Content_SitefinityImage5" src="/Images/nz.gif" alt="nz flag" style="border-width:0px;" />

    Regards,
    Liam
  10. scofield
    scofield avatar
    2 posts
    Registered:
    12 Jan 2016
    12 Jan
    Link to this post

    Hi i have also issue like this

    Here is my issue
    i have one related media field in dynamic module i want  to know the table name in the database in which document is stored 
    Suppose my module name is employee and it's related media field is resume 
    Now i had uploaded the resume for Employee Rushi so I want to know in which Table the Resume is stored and also the linking of that table with the my dynamic module table so that i can get the resume for the Employee Rushi from the sql query in DB.
    Looking for positive respose as soon as posible 
    Thanks 
    Scofield

Register for webinar
10 posts, 0 answered