Article View: adobe.golive.dynamic.content
Article #125Re: Picture path is not being added to MySQL DB
From: rafele
Date: Thu, 12 Aug 2004 15:38
Date: Thu, 12 Aug 2004 15:38
32 lines
1802 bytes
1802 bytes
hi, get a solution for this problem changing few line on the script; my problem: had 2 folders named big and small within a folder img in the root directory of my site, so the uploaded pictures had this path img/big/ and the picture ../img/big/xxxx.jpg; [small instead of big for thumb:)] my solution: on line 142/143 in the original Tim's script [i didn't make any change to $HTTP_POST_VARS] where say // create the destination path $destination = "../../".$upload_path.$key."_".$HTTP_POST_FILES[$key]['name']; changed with // create the destination path $destination = "../../".$upload_path.$HTTP_POST_FILES[$key]['name']; and after, on line 152/153 where say // Tell the GL-Database-Engine the name and path to the uploaded file $HTTP_POST_VARS[$tf] = $upload_path.$key."_".$HTTP_POST_FILES[$key]['name']; changed with $HTTP_POST_VARS[$tf] = "../".$upload_path.$HTTP_POST_FILES[$key]['name']; so this run, now i'm looking for a solution for delete picture function because don't work ; [either before] ciao, raf
Technical Details
Message-ID:
<3bb51bf4.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb51bf4.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 11ffd2,9bda70f14b81d8e3 X-Google-Attributes: gid11ffd2,public X-Google-Language: ENGLISH,ASCII-7-bit From: rafele@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.golive.dynamic.content Subject: Re: Picture path is not being added to MySQL DB Message-ID: <3bb51bf4.0@webx.la2eafNXanI> Date: Thu, 12 Aug 2004 08:38:39 -0700 References: <3bb51bf4.-1@webx.la2eafNXanI> Lines: 41 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit