<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How notepad ++ recover file information from an &#x27;web&#x27; exploreur?]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I’m looking for a solution to recover the path of a file or a folder during a drag and drop from a web exploreur (page : “file:///C:/…”).<br />
When I drag and drop a folder into the notepad ++ application, in a file, the path is automatically written. How is it possible? What’i the attribute to call?</p>
<p dir="auto">I try to code a personnal application and I worked on this since severals days, without success…:(</p>
<p dir="auto">Here is my trial (one of the numerous :D) :</p>
<pre><code>&lt;body dir="ltr"&gt;
&lt;input type="file" accept="image/*" onchange="loadFile(event)"&gt;
&lt;img id="output"/&gt;
&lt;label id="test"&gt; test&lt;/label&gt;

&lt;div&gt;
	&lt;iframe draggable="true"  ondragstart="drag(event)" id = "choixdossier" title="choix dossier" src = "file://C:/" importance = "high" width="600" height="600"&gt;&lt;/iframe&gt;
&lt;/div&gt;
div id="drop_zone"  ondrop="drag_drop(event)" ondragover="return false"  &gt;
&lt;/div&gt;

&lt;script&gt;
function drag(dragevent) {
console.log('drag...?');
    dragevent.dataTransfer.setData("text", dragevent.target.id);
    dragevent.target.style.color = 'green';
}
function drag_drop(event) {
    event.preventDefault(); /* Prevent undesirable default behavior while dropping */
	
    var data = event.dataTransfer.items;
    console.log('data : ',data);
    console.log('getData : ',data[3].getData("text/uri-list"));
    data[3].getAsString(function (s){
			console.log('s');
			event.target.appendChild(document.getElementById(s));
			});
		
}
&lt;/script&gt;

</code></pre>
<p dir="auto">Thanks a lot for everyone who can help me (I know, I’m a beginner…:( )!</p>
<p dir="auto">Noémie</p>
<p dir="auto"><em>Don’t know if the &lt;style&gt; is essential for you :</em></p>
<pre><code>&lt;style type="text/css"&gt;

:root {
  font-family: sans-serif;
}
.objects {
    display:inline-block;
    background-color: #FFF3CC;
    border: #DFBC6A 1px solid;
    width: 50px; 
    height: 50px;
    margin: 10px;
    padding: 8px;
    font-size: 18px;
    text-align: center;
    box-shadow: 2px 2px 2px #999;
    cursor: move;
}
#drop_zone {
    background-color: #EEE; 
    border: #999 1px solid;
    width: 600px; 
    height: 600px;
    padding: 8px;
    font-size: 18px;
}
div {
	background-color: #ABBAEA;
	}
img {
  border: 0;
}
th {
  text-align: start;
  white-space: nowrap;
}
th &gt; a {
  color: inherit;
}
table[order] &gt; thead &gt; tr &gt; th {
  cursor: pointer;
}
table[order] &gt; thead &gt; tr &gt; th::after {
  display: none;
  width: .8em;
  margin-inline-end: -.8em;
  text-align: end;
}
table[order="asc"] &gt; thead &gt; tr &gt; th::after {
  content: "\2193"; /* DOWNWARDS ARROW (U+2193) */
}
table[order="desc"] &gt; thead &gt; tr &gt; th::after {
  content: "\2191"; /* UPWARDS ARROW (U+2191) */
}
table[order][order-by="0"] &gt; thead &gt; tr &gt; th:first-child &gt; a ,
table[order][order-by="1"] &gt; thead &gt; tr &gt; th:first-child + th &gt; a ,
table[order][order-by="2"] &gt; thead &gt; tr &gt; th:first-child + th + th &gt; a {
  text-decoration: underline;
}
table[order][order-by="0"] &gt; thead &gt; tr &gt; th:first-child::after ,
table[order][order-by="1"] &gt; thead &gt; tr &gt; th:first-child + th::after ,
table[order][order-by="2"] &gt; thead &gt; tr &gt; th:first-child + th + th::after {
  display: inline-block;
}
table.remove-hidden &gt; tbody &gt; tr.hidden-object {
  display: none;
}
td {
  white-space: nowrap;
}
table.ellipsis {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
}
table.ellipsis &gt; tbody &gt; tr &gt; td {
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* name */
/* name */
th:first-child {
  padding-inline-end: 2em;
}
/* size */
th:first-child + th {
  padding-inline-end: 1em;
}
td:first-child + td {
  text-align: end;
  padding-inline-end: 1em;
}
/* date */
td:first-child + td + td {
  padding-inline-start: 1em;
  padding-inline-end: .5em;
}
/* time */
td:first-child + td + td + td {
  padding-inline-start: .5em;
}
.symlink {
  font-style: italic;
}
.dir ,
.symlink ,
.file {
  margin-inline-start: 20px;
}
.dir::before ,
.file &gt; img {
  margin-inline-end: 4px;
  margin-inline-start: -20px;
  max-width: 16px;
  max-height: 16px;
  vertical-align: middle;
}
.dir::before {
  content: url(resource://content-accessible/html/folder.png);
}
&lt;/style&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/topic/20291/how-notepad-recover-file-information-from-an-web-exploreur</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 18:08:26 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20291.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Nov 2020 09:09:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How notepad ++ recover file information from an &#x27;web&#x27; exploreur? on Wed, 11 Nov 2020 18:23:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> Thanks for your detailed answer. I feel like a beginner and you’re right, I probably misunterstand the differences between web and desktop developpment. Thanks a lot for the links, whose I will read with attention and I hope that will help me to find the solution!<br />
( for the joke, I,ve tried to find what I want in the code source but I’m not gifted apparently :D)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59627</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59627</guid><dc:creator><![CDATA[Noemie Malgogne]]></dc:creator><pubDate>Wed, 11 Nov 2020 18:23:40 GMT</pubDate></item><item><title><![CDATA[Reply to How notepad ++ recover file information from an &#x27;web&#x27; exploreur? on Wed, 11 Nov 2020 14:16:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/noemie-malgogne" aria-label="Profile: Noemie-Malgogne">@<bdi>Noemie-Malgogne</bdi></a> said in <a href="/post/59619">How notepad ++ recover file information from an 'web' exploreur?</a>:</p>
<blockquote>
<p dir="auto">I would like to understand how notepad ++ is coded to implement this function</p>
</blockquote>
<p dir="auto">Taking you at your word: You can look in the <a href="https://github.com/notepad-plus-plus/notepad-plus-plus" rel="nofollow ugc">Notepad++ source code</a>.</p>
<p dir="auto">But this isn’t a Notepad++-specific concept, so you might want to search elsewhere, too.</p>
<p dir="auto">A quick search for <a href="https://www.google.com/search?q=win32+api+drag-and-drop" rel="nofollow ugc">“win32 api drag-and-drop”</a> on the interwebs shows me lots of reasonable answers, the first three (for me) being two canonical Windows documentation sources, and a SO question which seems to match what you’re trying to do:</p>
<ul>
<li><a href="https://docs.microsoft.com/en-us/windows/win32/com/drag-and-drop" rel="nofollow ugc">Drag and Drop - Win32 apps | Microsoft Docs</a></li>
<li><a href="https://docs.microsoft.com/en-us/windows/win32/shell/wm-dropfiles" rel="nofollow ugc">WM_DROPFILES message (Winuser.h) - Win32 apps</a></li>
<li><a href="https://stackoverflow.com/questions/12345435/drag-and-drop-support-for-win32-gui" rel="nofollow ugc">Drag and Drop Support for win32 GUI - Stack Overflow</a></li>
</ul>
<p dir="auto">Based on even the <em>names</em> of those links, if I were trying to find the Notepad++ implementation of drag-and-drop files, I would start <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/search?q=WM_DROPFILES" rel="nofollow ugc">here</a></p>
<p dir="auto">-–<br />
But returning to your statement,</p>
<blockquote>
<p dir="auto">I would like to understand how notepad ++ is coded to implement this function</p>
</blockquote>
<p dir="auto">Given that statement in your second message, I am not sure why you originally posted a bunch of HTML+JavaScript code in your original question.</p>
<p dir="auto">The way you code a drag-and-drop file upload for the web is <em>completely different</em> from the way a pure-Windows application like Notepad++ implements it.  If you are really trying to find out how to add a drag-and-drop file upload to your website, then looking at the Notepad++ source code or the links I found for you above won’t help.  Instead, you should search for instructions on how to code drag-and-drop file upload for a website.  And if that’s your real desire, it is completely off-topic for this forum.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59620</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59620</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 11 Nov 2020 14:16:43 GMT</pubDate></item><item><title><![CDATA[Reply to How notepad ++ recover file information from an &#x27;web&#x27; exploreur? on Wed, 11 Nov 2020 14:01:37 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your answer and sorry if I have not explained my issues very well (probably my english level don’t facilitate things…:( ).<br />
So, I would like to understand <strong>how notepad ++ is coded</strong> to implement this function (copy the path of a file when drag and drop from a navigator window, ‘file:///c:…’). So I will perhaps be able to do the same process for my code ;).</p>
<p dir="auto"><em>Again, I do my best to not disturb you, your site and the developpers…Sorry by advance if this message don’t respect your rules (but I hope it does…).</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/59619</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59619</guid><dc:creator><![CDATA[Noemie Malgogne]]></dc:creator><pubDate>Wed, 11 Nov 2020 14:01:37 GMT</pubDate></item><item><title><![CDATA[Reply to How notepad ++ recover file information from an &#x27;web&#x27; exploreur? on Wed, 11 Nov 2020 13:36:32 GMT]]></title><description><![CDATA[<p dir="auto">The answer is <a href="https://community.notepad-plus-plus.org/topic/15958/faq-desk-you-ve-asked-your-question-in-the-wrong-place">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59618</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59618</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 11 Nov 2020 13:36:32 GMT</pubDate></item></channel></rss>