Announcement

Collapse
No announcement yet.

Image upload to another location

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Image upload to another location

    I am trying to upload an image from a form to the following location /public_html/website.com/iphone/uploades/gallery_images/
    But my SC application is located in the following folder http://website.com/webadmin/

    I tried changing the Sub-folder for the image field to point to /public_html/website.com/iphone/uploades/gallery_images/ but its not letting me upload to this location.
    Its uploading to the following location /public_html/website.com/webadmin/_lib/file/img/public_html/website.com/iphone/uploades/gallery_images/

    Someone please help me resolve this issue. I need to upload the image outside the SC application folder.

    Thanks!
    Sai

  • #2
    You could look at the documents path in the form settings option. Not sure if it works, but afaik the subdir is created based upon this setting. If that doesn't work you can consider creating a custom upload function (i.e. within libraries section).
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Hi Albert,

      I tried changing the Documents Folder and the Images Folder path in the settings to /public_html/website.com/iphone/uploades/gallery_images/ but it does not seem to work.

      I dont know the code to upload image in the programing > PHP Methods
      My filed for the image is called vItem_Image and I want to image to be saved in /public_html/website.com/iphone/uploades/gallery_images/ location.

      Comment


      • #4
        I was affraid of that. In fact I think it's a bug and we've reported it to SC. Meanwhile you need a work-around and that means that you need your own php upload. Now if you google you'll find a lot. I think this is a nice one to start with:

        http://www.htmlgoodies.com/beyond/ph...-Using-PHP.htm
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment

        Working...
        X