<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://cutesoft.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PHP File Uploader</title><link>http://cutesoft.net/forums/53/ShowForum.aspx</link><description>Questions, issues, and discussions of PHP File Uploader. &lt;A href="http://phpfileuploader.com"&gt;http://phpfileuploader.com&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Re: Copy File Guid or Combination Of Both To Server Folder</title><link>http://cutesoft.net/forums/thread/73020.aspx</link><pubDate>Tue, 14 Feb 2012 07:12:53 GMT</pubDate><guid isPermaLink="false">9a74aede-84de-42da-8122-3d80bfaac2cf:73020</guid><dc:creator>Kenneth</dc:creator><slash:comments>0</slash:comments><comments>http://cutesoft.net/forums/thread/73020.aspx</comments><wfw:commentRss>http://cutesoft.net/forums/commentrss.aspx?SectionID=53&amp;PostID=73020</wfw:commentRss><description>&lt;div&gt;Hi IRHM73,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;The example below shows you how to save the upload file by method "CopyTo". This method allow you handle the file location and the file name.&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;div style="border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:#666666;border-right-color:#666666;border-bottom-color:#666666;border-left-color:#666666;border-image:initial;"&gt;&lt;div id="pastingspan1"&gt;&amp;lt;?php require_once "phpuploader/include_phpuploader.php" ?&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;lt;?php session_start(); ?&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;lt;head&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;	&lt;/span&gt;&amp;lt;title&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;		&lt;/span&gt;Form - Start uploading manually&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;	&lt;/span&gt;&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;			&lt;/span&gt;&amp;lt;form id="form1" method="POST"&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;				&lt;/span&gt;&amp;lt;?php&lt;span style="white-space:pre;"&gt;				&lt;/span&gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;					&lt;/span&gt;$uploader=new PhpUploader();&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;					&lt;/span&gt;$uploader-&amp;gt;MaxSizeKB=10240;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;					&lt;/span&gt;$uploader-&amp;gt;Name="myuploader";&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;					&lt;/span&gt;$uploader-&amp;gt;InsertText="Select multiple files (Max 10M)";&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;					&lt;/span&gt;$uploader-&amp;gt;AllowedFileExtensions="*.jpg,*.png,*.gif,*.txt,*.zip,*.rar";&lt;span style="white-space:pre;"&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;					&lt;/span&gt;$uploader-&amp;gt;MultipleFilesUpload=true;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;					&lt;/span&gt;$uploader-&amp;gt;Render();&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;		&lt;/span&gt; &amp;nbsp; &amp;nbsp;?&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;			&lt;/span&gt;&amp;lt;/form&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;			&lt;/span&gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;		&lt;/span&gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;lt;?php&lt;/div&gt;&lt;div id="pastingspan1"&gt;$fileguidlist=@$_POST["myuploader"];&lt;/div&gt;&lt;div id="pastingspan1"&gt;if($fileguidlist)&lt;/div&gt;&lt;div id="pastingspan1"&gt;{&lt;/div&gt;&lt;div id="pastingspan1"&gt;$guidlist=split("/",$fileguidlist); &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;nbsp; &amp;nbsp; foreach($guidlist as $fileguid) &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;nbsp; &amp;nbsp; { &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //get the uploaded file based on GUID &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $mvcfile=$uploader-&amp;gt;GetUploadedFile($fileguid); &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if($mvcfile) &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color:red;"&gt; $mvcfile-&amp;gt;MoveTo("D:/2005/phpuploader/test/".$mvcfile-&amp;gt;FileName);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;nbsp; &amp;nbsp; } &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;}&lt;/div&gt;&lt;div id="pastingspan1"&gt;?&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;				&lt;/span&gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&lt;span style="white-space:pre;"&gt;	&lt;/span&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div id="pastingspan1"&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;/div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;Regards,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;Ken&amp;nbsp;&lt;/div&gt;</description></item><item><title>Re: Copy File Guid or Combination Of Both To Server Folder</title><link>http://cutesoft.net/forums/thread/73006.aspx</link><pubDate>Mon, 13 Feb 2012 06:17:54 GMT</pubDate><guid isPermaLink="false">9a74aede-84de-42da-8122-3d80bfaac2cf:73006</guid><dc:creator>IRHM73</dc:creator><slash:comments>0</slash:comments><comments>http://cutesoft.net/forums/thread/73006.aspx</comments><wfw:commentRss>http://cutesoft.net/forums/commentrss.aspx?SectionID=53&amp;PostID=73006</wfw:commentRss><description>&lt;div&gt;&lt;span style="color:#000000;"&gt;Hi Ken, many thanks for this.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000000;"&gt;It's not the moving of the 'File Guid' name to my database that's the problem, I'm already doing this, but it's the name of the physical&amp;nbsp;image file that I'm saving my folder on my server. It currently saves the file using the filename as a way of identifying it, but I'm trying to save this using the 'File Guid' name.&lt;/span&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I've been through all the documentaion and the forum posts to try and find a way of changing this without any luck.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Are you able to help me with this please?&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Many thanks&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;</description></item><item><title>Re: Copy File Guid or Combination Of Both To Server Folder</title><link>http://cutesoft.net/forums/thread/72985.aspx</link><pubDate>Fri, 10 Feb 2012 15:38:50 GMT</pubDate><guid isPermaLink="false">9a74aede-84de-42da-8122-3d80bfaac2cf:72985</guid><dc:creator>Kenneth</dc:creator><slash:comments>0</slash:comments><comments>http://cutesoft.net/forums/thread/72985.aspx</comments><wfw:commentRss>http://cutesoft.net/forums/commentrss.aspx?SectionID=53&amp;PostID=72985</wfw:commentRss><description>&lt;div&gt;Hi&amp;nbsp;&lt;strong style="color:#000000;font-size:13px;line-height:18px;"&gt;IRHM73,&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;We have provide the method to allow you get the file guid and the file name, I think you need to &amp;nbsp;write your own logic to save the info into your server.&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;Regards,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;Ken&amp;nbsp;&lt;/div&gt;</description></item><item><title>Copy File Guid or Combination Of Both To Server Folder</title><link>http://cutesoft.net/forums/thread/72980.aspx</link><pubDate>Fri, 10 Feb 2012 08:12:16 GMT</pubDate><guid isPermaLink="false">9a74aede-84de-42da-8122-3d80bfaac2cf:72980</guid><dc:creator>IRHM73</dc:creator><slash:comments>0</slash:comments><comments>http://cutesoft.net/forums/thread/72980.aspx</comments><wfw:commentRss>http://cutesoft.net/forums/commentrss.aspx?SectionID=53&amp;PostID=72980</wfw:commentRss><description>&lt;div&gt;I wonder whether someone may be able to help me please.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Part of my script, like most I suspect, contains the line which copies the image to a server folder via:&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font color="#333333"&gt;$mvcfile-&amp;gt;CopyTo("saveimagefiles"); &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;This correctly saves the file using the filename as the identifier for the file. Could someone perhaps tell me please is there a way to do the following:&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Copy the file using the FileGuid as the file identifier, and &lt;/div&gt;
&lt;div&gt;Combine the two pieces of information i.e. the filename and File Guid&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Many thanks and kind regards&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Chris&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;</description></item></channel></rss>