<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Atozed Forums - Delphi General Discussion]]></title>
		<link>https://www.atozed.com/forums/</link>
		<description><![CDATA[Atozed Forums - https://www.atozed.com/forums]]></description>
		<pubDate>Tue, 03 Nov 2026 05:21:47 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Looking for UI Design Tips for a Business Catalog Website]]></title>
			<link>https://www.atozed.com/forums/thread-6344.html</link>
			<pubDate>Thu, 06 Aug 2026 01:17:22 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=95823">chrisjordon232</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-6344.html</guid>
			<description><![CDATA[Hi everyone,<br />
<br />
I'm working on a business catalog website using web technologies, and I'm looking for some advice on creating a clean and responsive user interface.<br />
<br />
The project is for a company that showcases <a href="https://officeinn.ae/" target="_blank" rel="noopener" class="mycode_url">Office Furniture in Dubai</a>, so the website contains product categories, image galleries, contact forms, and inquiry pages. My main goal is to make the site load quickly while keeping the layout simple and user-friendly.<br />
<br />
For those who have experience with IntraWeb or Delphi web applications:<br />
<br />
Which UI components work best for product catalog pages?<br />
Do you have any recommendations for improving page performance when displaying many images?<br />
Is there a preferred approach for responsive layouts that works well across desktop and mobile devices?<br />
<br />
I'd appreciate any suggestions, best practices, or examples from your own projects.<br />
<br />
Thank you in advance for your help!]]></description>
			<content:encoded><![CDATA[Hi everyone,<br />
<br />
I'm working on a business catalog website using web technologies, and I'm looking for some advice on creating a clean and responsive user interface.<br />
<br />
The project is for a company that showcases <a href="https://officeinn.ae/" target="_blank" rel="noopener" class="mycode_url">Office Furniture in Dubai</a>, so the website contains product categories, image galleries, contact forms, and inquiry pages. My main goal is to make the site load quickly while keeping the layout simple and user-friendly.<br />
<br />
For those who have experience with IntraWeb or Delphi web applications:<br />
<br />
Which UI components work best for product catalog pages?<br />
Do you have any recommendations for improving page performance when displaying many images?<br />
Is there a preferred approach for responsive layouts that works well across desktop and mobile devices?<br />
<br />
I'd appreciate any suggestions, best practices, or examples from your own projects.<br />
<br />
Thank you in advance for your help!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[VCL conversion]]></title>
			<link>https://www.atozed.com/forums/thread-6234.html</link>
			<pubDate>Sat, 20 Jun 2026 01:00:43 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=701">tobenschain</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-6234.html</guid>
			<description><![CDATA[Is there a program such as Mida available for converting VCL to Intraweb?]]></description>
			<content:encoded><![CDATA[Is there a program such as Mida available for converting VCL to Intraweb?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Problem with sendfile in version 15.6.7]]></title>
			<link>https://www.atozed.com/forums/thread-5109.html</link>
			<pubDate>Tue, 18 Mar 2025 18:19:17 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=1047">manderson9960</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-5109.html</guid>
			<description><![CDATA[Greetings<br />
<br />
I've used sendfile before in Delphi applications (10.4 Sydney) to send files built with ReportBuilder to the clients downloads folder.  All has worked well for years.<br />
<br />
Now, I'm writing a new application to do this using the following code:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>ppReport1.DeviceType:='PDF';<br />
ppReport1.TextFileName:= 'D:&#92;OnlineEntrys&#92;Online Receipt - ' + formatdatetime('dd-mm-yyyy hh_nn_ss', now) + '.pdf';<br />
ppReport1.ShowPrintDialog:=False;<br />
ppReport1.ShowCancelDialog:=False;<br />
ppReport1.ModalCancelDialog:=False;<br />
ppReport1.ModalPreview:=False;<br />
ppreport1.Print;<br />
webapplication.SendFile(ppReport1.TextFileName, True);<br />
ppreport1.reset;</code></div></div><br />
The 'D:\OnlineEntries' folder was set up for me by the sysadmin to drop the files while I send them out.  The files are created successfully.<br />
<br />
When I run the code, I receive the following message:<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.atozed.com/forums/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=854" target="_blank" title="">error.png</a> (Size: 10.3 KB / Downloads: 3)
<!-- end: postbit_attachments_attachment --><br />
<br />
I've searched the documentation and the internet, and cannot figure out what this message is  trying <br />
to tell me.  Before I changed it to an ISAPI dll, I ran it as an exe file on my local computer, and it worked<br />
fine.  My gut tells me that it's a permissions issue somewhere, but I have no idea where.<br />
<br />
Any suggestions or comments would be greatly appreciated.<br />
<br />
Regards,<br />
<br />
Mark]]></description>
			<content:encoded><![CDATA[Greetings<br />
<br />
I've used sendfile before in Delphi applications (10.4 Sydney) to send files built with ReportBuilder to the clients downloads folder.  All has worked well for years.<br />
<br />
Now, I'm writing a new application to do this using the following code:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>ppReport1.DeviceType:='PDF';<br />
ppReport1.TextFileName:= 'D:&#92;OnlineEntrys&#92;Online Receipt - ' + formatdatetime('dd-mm-yyyy hh_nn_ss', now) + '.pdf';<br />
ppReport1.ShowPrintDialog:=False;<br />
ppReport1.ShowCancelDialog:=False;<br />
ppReport1.ModalCancelDialog:=False;<br />
ppReport1.ModalPreview:=False;<br />
ppreport1.Print;<br />
webapplication.SendFile(ppReport1.TextFileName, True);<br />
ppreport1.reset;</code></div></div><br />
The 'D:\OnlineEntries' folder was set up for me by the sysadmin to drop the files while I send them out.  The files are created successfully.<br />
<br />
When I run the code, I receive the following message:<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.atozed.com/forums/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=854" target="_blank" title="">error.png</a> (Size: 10.3 KB / Downloads: 3)
<!-- end: postbit_attachments_attachment --><br />
<br />
I've searched the documentation and the internet, and cannot figure out what this message is  trying <br />
to tell me.  Before I changed it to an ISAPI dll, I ran it as an exe file on my local computer, and it worked<br />
fine.  My gut tells me that it's a permissions issue somewhere, but I have no idea where.<br />
<br />
Any suggestions or comments would be greatly appreciated.<br />
<br />
Regards,<br />
<br />
Mark]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Flowcharts / software design]]></title>
			<link>https://www.atozed.com/forums/thread-4913.html</link>
			<pubDate>Fri, 17 Jan 2025 17:36:03 -0500</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=9628">Justin Case</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-4913.html</guid>
			<description><![CDATA[Any tips for a software designer / flowchart thingy?<br />
<br />
I'm working on a server, it's getting complicated now and I am struggling drawing out objects, their properties and logic flowcharts on A4 bits of paper. It's just not a strength I have.<br />
<br />
Any freeware out there that I can use? - It needs to let me design objects with their properties and then basic flowcharts - preferably with events..<br />
<br />
I am really struggling to keep it all in my head!]]></description>
			<content:encoded><![CDATA[Any tips for a software designer / flowchart thingy?<br />
<br />
I'm working on a server, it's getting complicated now and I am struggling drawing out objects, their properties and logic flowcharts on A4 bits of paper. It's just not a strength I have.<br />
<br />
Any freeware out there that I can use? - It needs to let me design objects with their properties and then basic flowcharts - preferably with events..<br />
<br />
I am really struggling to keep it all in my head!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[False Positive Trojan warning major problems]]></title>
			<link>https://www.atozed.com/forums/thread-3532.html</link>
			<pubDate>Mon, 02 Oct 2023 15:02:53 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=123">BartKindt</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-3532.html</guid>
			<description><![CDATA[I have several Free programs out for Search and Rescue , which keep showing up a "false positive" for some kind of virus.<br />
<br />
As a result, in the last 6 months or so, it has become nearly impossible for people to install my programs.<br />
Firefox blocks the installation package on download.<br />
Microsoft windows 10 tries to block it with both an anti-virus system followed by a Certifcate problem (I have no certificate as I cannot afford the huge yearly fees).<br />
<br />
Yesterday I got a panic call from a New Zealand Search and Rescue organisation, that suddenly on all their computers the main program litterally dissapeared while they where using it, including the Icon of the desktop. Right in the middle of a life-and-death Operation.<br />
<br />
So, somewhere in my 250,000 lines of source code is something which generates a sequence of bytes in the Executable which triggens some anti-virus programs.<br />
<br />
- How can I locate the exact position of this sequence in the executable?<br />
- How can I somehow reverse engineer (de-compille) the executable to the point that I can then locate where in the Source code the problem is?<br />
<br />
Bart]]></description>
			<content:encoded><![CDATA[I have several Free programs out for Search and Rescue , which keep showing up a "false positive" for some kind of virus.<br />
<br />
As a result, in the last 6 months or so, it has become nearly impossible for people to install my programs.<br />
Firefox blocks the installation package on download.<br />
Microsoft windows 10 tries to block it with both an anti-virus system followed by a Certifcate problem (I have no certificate as I cannot afford the huge yearly fees).<br />
<br />
Yesterday I got a panic call from a New Zealand Search and Rescue organisation, that suddenly on all their computers the main program litterally dissapeared while they where using it, including the Icon of the desktop. Right in the middle of a life-and-death Operation.<br />
<br />
So, somewhere in my 250,000 lines of source code is something which generates a sequence of bytes in the Executable which triggens some anti-virus programs.<br />
<br />
- How can I locate the exact position of this sequence in the executable?<br />
- How can I somehow reverse engineer (de-compille) the executable to the point that I can then locate where in the Source code the problem is?<br />
<br />
Bart]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Changing the Modalresult of a button on close]]></title>
			<link>https://www.atozed.com/forums/thread-3522.html</link>
			<pubDate>Tue, 26 Sep 2023 16:25:17 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=123">BartKindt</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-3522.html</guid>
			<description><![CDATA[I feel stupid to have to ask this after all these years programming, but I never got this properly sorted out.<br />
<br />
I have a Form which is opened with ShowModal.<br />
There is a Cancel button and an OK button.<br />
The Modalresult Cancel button is set at design time to mrCancel.<br />
<br />
But the Modalresult of the OK botton cannot be set to mrOK because I need to be able to break out of it, and let the user correct all invalid settings on the form.<br />
So:<br />
<br />
OkBtn.Modelresult = mrNone;<br />
<br />
Form.OkBtnClick();<br />
begin<br />
  if SomethingWrong then<br />
  begin<br />
     ShowMessage(Fix it!);<br />
     OkBtn.Modelresult := mrNone;<br />
     exit; // Form should NOT close<br />
  end else<br />
  begin<br />
     All okay, Close Form with Modalresult mrOK;<br />
     OkBtn.Modelresult := mrOK; // Nothing happens...<br />
     Form.Modalresult := mrOK; // has no effect<br />
     CLose; // Does NOT close with mrOK.<br />
  end;<br />
<br />
This does not work.<br />
What is the correct way to deal with a Modal form in such a way that the final Modalresult is mrOK but while still working it is possible to intercept the OKBtn from closing the form?]]></description>
			<content:encoded><![CDATA[I feel stupid to have to ask this after all these years programming, but I never got this properly sorted out.<br />
<br />
I have a Form which is opened with ShowModal.<br />
There is a Cancel button and an OK button.<br />
The Modalresult Cancel button is set at design time to mrCancel.<br />
<br />
But the Modalresult of the OK botton cannot be set to mrOK because I need to be able to break out of it, and let the user correct all invalid settings on the form.<br />
So:<br />
<br />
OkBtn.Modelresult = mrNone;<br />
<br />
Form.OkBtnClick();<br />
begin<br />
  if SomethingWrong then<br />
  begin<br />
     ShowMessage(Fix it!);<br />
     OkBtn.Modelresult := mrNone;<br />
     exit; // Form should NOT close<br />
  end else<br />
  begin<br />
     All okay, Close Form with Modalresult mrOK;<br />
     OkBtn.Modelresult := mrOK; // Nothing happens...<br />
     Form.Modalresult := mrOK; // has no effect<br />
     CLose; // Does NOT close with mrOK.<br />
  end;<br />
<br />
This does not work.<br />
What is the correct way to deal with a Modal form in such a way that the final Modalresult is mrOK but while still working it is possible to intercept the OKBtn from closing the form?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Working with PNG data]]></title>
			<link>https://www.atozed.com/forums/thread-2736.html</link>
			<pubDate>Fri, 13 May 2022 13:17:31 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=1484">Сергей Александрович</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-2736.html</guid>
			<description><![CDATA[Good time of day!<br />
<br />
I've never worked with images. Now there is a need to display the image received from the server.<br />
<br />
Here is the response I get from the server as a result of the request:<br />
<br />
{"code":"000","message":"Запрос обработан успешно","data":{"image":{"mediaType":"image/png","content":"iVBORw0KGgoAAAAN....................."}}}<br />
<br />
Please tell me how to display the received image in the "content" parameter on the screen. I use Delphi]]></description>
			<content:encoded><![CDATA[Good time of day!<br />
<br />
I've never worked with images. Now there is a need to display the image received from the server.<br />
<br />
Here is the response I get from the server as a result of the request:<br />
<br />
{"code":"000","message":"Запрос обработан успешно","data":{"image":{"mediaType":"image/png","content":"iVBORw0KGgoAAAAN....................."}}}<br />
<br />
Please tell me how to display the received image in the "content" parameter on the screen. I use Delphi]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[source text]]></title>
			<link>https://www.atozed.com/forums/thread-2481.html</link>
			<pubDate>Sun, 08 Aug 2021 10:18:53 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=1484">Сергей Александрович</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-2481.html</guid>
			<description><![CDATA[In which directory should the IntraWeb sources be placed so that they are available in DesignTime In Delphi XE7]]></description>
			<content:encoded><![CDATA[In which directory should the IntraWeb sources be placed so that they are available in DesignTime In Delphi XE7]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[upload image with php file]]></title>
			<link>https://www.atozed.com/forums/thread-1738.html</link>
			<pubDate>Wed, 17 Jun 2020 13:05:53 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=14">Madammar</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-1738.html</guid>
			<description><![CDATA[i have this uploading php script <br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&lt;?php<br />
<br />
/* Check if file already exists in location file save */<br />
&#36;fdirectory  = "uploads/";<br />
if (!file_exists(&#36;fdirectory)) {<br />
die('You Need To Create uploads Folder before start uploading..&lt;br&gt; &lt;b&gt;Dont Forget To Give Premission 777 To the Folder&lt;/b&gt;');<br />
}<br />
<br />
<br />
if (isset(&#36;_POST['upload'])) {<br />
<br />
&#36;imgsize = &#36;_FILES['image']['size'];<br />
&#36;image_name = &#36;_FILES['image']['name'];<br />
&#36;image_tempname = &#36;_FILES['image']['tmp_name'];<br />
&#36;image_type = getimagesize(&#36;image_tempname);<br />
&#36;image_ext = explode('.',&#36;image_name);<br />
&#36;ext = strtolower(end(&#36;image_ext));<br />
&#36;FileError = &#36;_FILES['image']['error']; <br />
&#36;allow_ext = array('png','jpg','gif','jpeg','bmp');<br />
&#36;allow_type = array('image/png','image/gif','image/jpeg','image/bmp');<br />
<br />
if (in_array(&#36;ext, &#36;allow_ext) &amp;&amp; in_array(&#36;image_type['mime'], &#36;allow_type)) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
if (&#36;FileError === 0) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
if (&#36;imgsize &lt; 300000) { <br />
<br />
list(&#36;width, &#36;height, &#36;mime) = &#36;image_type;<br />
<br />
if (&#36;width&gt;0 &amp;&amp; &#36;height&gt;0) {<br />
<br />
#do Upload<br />
&#36;NewImageName = uniqid('', true).".".&#36;ext;<br />
&#36;moveImg = &#36;fdirectory.&#36;NewImageName;<br />
<br />
&#36;upload = move_uploaded_file(&#36;image_tempname, &#36;moveImg);<br />
<br />
if (&#36;upload) {<br />
header("Location: imgup.php?img=".&#36;moveImg ."");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;<br />
} else {<br />
header("Location: imgup.php?res=failed");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;<br />
} # end check if uploaded<br />
<br />
} else {<br />
header("Location: imgup.php?res=error");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;<br />
}# image width check<br />
<br />
} else {<br />
header("Location: imgup.php?res=large");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
} # File size check end<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
} else {#FileError<br />
<br />
header("Location: imgup.php?res=error");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
<br />
}<br />
<br />
} else { # end of sec check<br />
<br />
header("Location: imgup.php?res=error");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
}<br />
<br />
/* isset check end*/<br />
}<br />
?&gt;</code></div></div><br />
<br />
and i am using httpclient to post the file to  php like following<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>HttpClient := THTTPClient.Create;<br />
try<br />
<br />
HttpClient.AllowCookies := True;<br />
HttpClient.UserAgent := sUserAgent;<br />
HttpClient.HandleRedirects := True;<br />
HttpClient.MaxRedirects := 3;<br />
HTTPClient.ConnectionTimeout := 0;<br />
HTTPClient.ResponseTimeout   := 0;<br />
<br />
<br />
PostData := TIdMultipartFormDataStream.Create;<br />
try<br />
<br />
try<br />
PostData.AddFile('image', FFileToUpload);<br />
HttpResponse := HttpClient.Post(FdataURL, PostData);<br />
FoutData := HttpResponse.ContentAsString();<br />
except<br />
end;<br />
<br />
finally<br />
PostData.Free;<br />
end;<br />
<br />
<br />
<br />
<br />
finally<br />
HttpClient.Free;<br />
end;</code></div></div><br />
<br />
but the image doesnt seems to get uploaded and i get an empty response <br />
<br />
what i am doing wrong ?<br />
<br />
in html it works fine <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&lt;form action="upload.php" method="post" enctype="multipart/form-data"&gt;<br />
  <br />
&lt;div class="form-group file-area"&gt;<br />
 <br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="file"  accept="image/*" name="image" id="images"&gt;<br />
  &lt;/div&gt;<br />
  <br />
  <br />
  &lt;div class="form-group"&gt;<br />
    &lt;button type="submit" name="upload"&gt;Upload image&lt;/button&gt;<br />
  &lt;/div&gt;<br />
  <br />
&lt;/form&gt;</code></div></div>]]></description>
			<content:encoded><![CDATA[i have this uploading php script <br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&lt;?php<br />
<br />
/* Check if file already exists in location file save */<br />
&#36;fdirectory  = "uploads/";<br />
if (!file_exists(&#36;fdirectory)) {<br />
die('You Need To Create uploads Folder before start uploading..&lt;br&gt; &lt;b&gt;Dont Forget To Give Premission 777 To the Folder&lt;/b&gt;');<br />
}<br />
<br />
<br />
if (isset(&#36;_POST['upload'])) {<br />
<br />
&#36;imgsize = &#36;_FILES['image']['size'];<br />
&#36;image_name = &#36;_FILES['image']['name'];<br />
&#36;image_tempname = &#36;_FILES['image']['tmp_name'];<br />
&#36;image_type = getimagesize(&#36;image_tempname);<br />
&#36;image_ext = explode('.',&#36;image_name);<br />
&#36;ext = strtolower(end(&#36;image_ext));<br />
&#36;FileError = &#36;_FILES['image']['error']; <br />
&#36;allow_ext = array('png','jpg','gif','jpeg','bmp');<br />
&#36;allow_type = array('image/png','image/gif','image/jpeg','image/bmp');<br />
<br />
if (in_array(&#36;ext, &#36;allow_ext) &amp;&amp; in_array(&#36;image_type['mime'], &#36;allow_type)) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
if (&#36;FileError === 0) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
if (&#36;imgsize &lt; 300000) { <br />
<br />
list(&#36;width, &#36;height, &#36;mime) = &#36;image_type;<br />
<br />
if (&#36;width&gt;0 &amp;&amp; &#36;height&gt;0) {<br />
<br />
#do Upload<br />
&#36;NewImageName = uniqid('', true).".".&#36;ext;<br />
&#36;moveImg = &#36;fdirectory.&#36;NewImageName;<br />
<br />
&#36;upload = move_uploaded_file(&#36;image_tempname, &#36;moveImg);<br />
<br />
if (&#36;upload) {<br />
header("Location: imgup.php?img=".&#36;moveImg ."");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;<br />
} else {<br />
header("Location: imgup.php?res=failed");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;<br />
} # end check if uploaded<br />
<br />
} else {<br />
header("Location: imgup.php?res=error");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;<br />
}# image width check<br />
<br />
} else {<br />
header("Location: imgup.php?res=large");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
} # File size check end<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
} else {#FileError<br />
<br />
header("Location: imgup.php?res=error");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
<br />
}<br />
<br />
} else { # end of sec check<br />
<br />
header("Location: imgup.php?res=error");<br />
exit;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
}<br />
<br />
/* isset check end*/<br />
}<br />
?&gt;</code></div></div><br />
<br />
and i am using httpclient to post the file to  php like following<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>HttpClient := THTTPClient.Create;<br />
try<br />
<br />
HttpClient.AllowCookies := True;<br />
HttpClient.UserAgent := sUserAgent;<br />
HttpClient.HandleRedirects := True;<br />
HttpClient.MaxRedirects := 3;<br />
HTTPClient.ConnectionTimeout := 0;<br />
HTTPClient.ResponseTimeout   := 0;<br />
<br />
<br />
PostData := TIdMultipartFormDataStream.Create;<br />
try<br />
<br />
try<br />
PostData.AddFile('image', FFileToUpload);<br />
HttpResponse := HttpClient.Post(FdataURL, PostData);<br />
FoutData := HttpResponse.ContentAsString();<br />
except<br />
end;<br />
<br />
finally<br />
PostData.Free;<br />
end;<br />
<br />
<br />
<br />
<br />
finally<br />
HttpClient.Free;<br />
end;</code></div></div><br />
<br />
but the image doesnt seems to get uploaded and i get an empty response <br />
<br />
what i am doing wrong ?<br />
<br />
in html it works fine <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&lt;form action="upload.php" method="post" enctype="multipart/form-data"&gt;<br />
  <br />
&lt;div class="form-group file-area"&gt;<br />
 <br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="file"  accept="image/*" name="image" id="images"&gt;<br />
  &lt;/div&gt;<br />
  <br />
  <br />
  &lt;div class="form-group"&gt;<br />
    &lt;button type="submit" name="upload"&gt;Upload image&lt;/button&gt;<br />
  &lt;/div&gt;<br />
  <br />
&lt;/form&gt;</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Dynamically setting Application Main form]]></title>
			<link>https://www.atozed.com/forums/thread-1579.html</link>
			<pubDate>Mon, 09 Mar 2020 16:41:56 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=1575">KMMagic</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-1579.html</guid>
			<description><![CDATA[Hello,<br />
<br />
I've read the section in "Migrating to IntraWeb XIV and XV" regarding "Dynamically setting the application main form".<br />
<br />
I have a Standalone application that accesses a lot of variables defined in the usersessionUnit.  The main form sees these variables by including the UsersessionUnit and the ServerController unit in it's uses section.<br />
<br />
The suggested way to do it requires the inclusion of the form's unit in the uses clause of the ServerController Unit.<br />
<br />
I would like to dynamically switch the MainForm out for another more suited for display on a mobile device when required.   <br />
<br />
If I try to do it as shown in the documentation above, the inclusion of the form's unit in the ServerController's uses clause creates a circular reference.<br />
<br />
It leads me to believe that maybe I'm utilizing the usersessionunit incorrectly.<br />
<br />
How can I accomplish dynamically swapping the MainForm while still isolating each user's session variables?<br />
<br />
Thanks in advance,<br />
<br />
Kevin]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
I've read the section in "Migrating to IntraWeb XIV and XV" regarding "Dynamically setting the application main form".<br />
<br />
I have a Standalone application that accesses a lot of variables defined in the usersessionUnit.  The main form sees these variables by including the UsersessionUnit and the ServerController unit in it's uses section.<br />
<br />
The suggested way to do it requires the inclusion of the form's unit in the uses clause of the ServerController Unit.<br />
<br />
I would like to dynamically switch the MainForm out for another more suited for display on a mobile device when required.   <br />
<br />
If I try to do it as shown in the documentation above, the inclusion of the form's unit in the ServerController's uses clause creates a circular reference.<br />
<br />
It leads me to believe that maybe I'm utilizing the usersessionunit incorrectly.<br />
<br />
How can I accomplish dynamically swapping the MainForm while still isolating each user's session variables?<br />
<br />
Thanks in advance,<br />
<br />
Kevin]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[mcptUnknown is undeclared]]></title>
			<link>https://www.atozed.com/forums/thread-794.html</link>
			<pubDate>Tue, 30 Oct 2018 07:00:22 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=897">jeekanhaiya6</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-794.html</guid>
			<description><![CDATA[Hi,<br />
<br />
I am migrating my project from delphi 2009 to delphi berlin and using Indy10 in this. <br />
<br />
In class IdMessageCode, it is saying undeclared Identifier mcptUnknown.<br />
<br />
Can you explain why is it happening?<br />
<br />
Thanks <br />
kanhaiya]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I am migrating my project from delphi 2009 to delphi berlin and using Indy10 in this. <br />
<br />
In class IdMessageCode, it is saying undeclared Identifier mcptUnknown.<br />
<br />
Can you explain why is it happening?<br />
<br />
Thanks <br />
kanhaiya]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[software protection]]></title>
			<link>https://www.atozed.com/forums/thread-689.html</link>
			<pubDate>Tue, 25 Sep 2018 03:38:56 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=14">Madammar</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-689.html</guid>
			<description><![CDATA[i am using some cryptography inside my software , i understand that the keys needs to be zero out from the memory in order to prevent hackers to catch the key <br />
<br />
but i feel this isn't enough , using ollydebug can also break the rule before memory getting cleared by stepping into the code <br />
<br />
before the zeromemory called <br />
<br />
is there any suggested way to harden some code function from being stepped by debuggers <br />
<br />
i have tried to check if the application is running in debug environment using IsDebuggerPresent but this easly can be bybassed by ollydebug plugins <br />
<br />
is there something extra can be done ?]]></description>
			<content:encoded><![CDATA[i am using some cryptography inside my software , i understand that the keys needs to be zero out from the memory in order to prevent hackers to catch the key <br />
<br />
but i feel this isn't enough , using ollydebug can also break the rule before memory getting cleared by stepping into the code <br />
<br />
before the zeromemory called <br />
<br />
is there any suggested way to harden some code function from being stepped by debuggers <br />
<br />
i have tried to check if the application is running in debug environment using IsDebuggerPresent but this easly can be bybassed by ollydebug plugins <br />
<br />
is there something extra can be done ?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[can rawbytestring cleared from memory ?]]></title>
			<link>https://www.atozed.com/forums/thread-652.html</link>
			<pubDate>Tue, 11 Sep 2018 12:25:05 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=14">Madammar</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-652.html</guid>
			<description><![CDATA[how possibly i can  zeromemory rawbytestring ?]]></description>
			<content:encoded><![CDATA[how possibly i can  zeromemory rawbytestring ?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[zeromemory string state question]]></title>
			<link>https://www.atozed.com/forums/thread-613.html</link>
			<pubDate>Sun, 26 Aug 2018 20:39:28 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=14">Madammar</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-613.html</guid>
			<description><![CDATA[why some times when i do zeromemory for long string it does not get cleared from memory <br />
<br />
i do something like some times when i click on button 4 or 5 times i can see this text in memory viewer<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>procedure TForm1.OnClick(Sender: TObject);<br />
var<br />
  pstr: string;<br />
begin<br />
  pstr := 'abcdefghijklmnobqrsputwjdgdfkljfhghjfggffhgfj;<br />
<br />
  ZeroMemory(@(pstr[1]), Length(pstr)*SizeOf(Char));<br />
<br />
  pstr:='';<br />
<br />
end;</code></div></div>]]></description>
			<content:encoded><![CDATA[why some times when i do zeromemory for long string it does not get cleared from memory <br />
<br />
i do something like some times when i click on button 4 or 5 times i can see this text in memory viewer<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>procedure TForm1.OnClick(Sender: TObject);<br />
var<br />
  pstr: string;<br />
begin<br />
  pstr := 'abcdefghijklmnobqrsputwjdgdfkljfhghjfggffhgfj;<br />
<br />
  ZeroMemory(@(pstr[1]), Length(pstr)*SizeOf(Char));<br />
<br />
  pstr:='';<br />
<br />
end;</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[RAD Studio August 2018 Roadmap]]></title>
			<link>https://www.atozed.com/forums/thread-562.html</link>
			<pubDate>Tue, 07 Aug 2018 11:03:07 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://www.atozed.com/forums/member.php?action=profile&uid=1">kudzu</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.atozed.com/forums/thread-562.html</guid>
			<description><![CDATA[<a href="https://community.embarcadero.com/article/news/16638-rad-studio-august-2018-roadmap" target="_blank" rel="noopener" class="mycode_url">https://community.embarcadero.com/articl...18-roadmap</a>]]></description>
			<content:encoded><![CDATA[<a href="https://community.embarcadero.com/article/news/16638-rad-studio-august-2018-roadmap" target="_blank" rel="noopener" class="mycode_url">https://community.embarcadero.com/articl...18-roadmap</a>]]></content:encoded>
		</item>
	</channel>
</rss>