# Paste files to telegram

**URL:** <https://resource.dopus.com/t/paste-files-to-telegram/47405>\
**Category:** Help & Support\
**Created:** [December 12, 2023, 9:36am UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405 "2023-12-12T09:36:33Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![r91085](https://resource.dopus.com/letter_avatar_proxy/v4/letter/r/a88e4f/32.png) [@r91085](https://resource.dopus.com/u/r91085)\
**Post date:** [December 12, 2023, 9:36am UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/1 "2023-12-12T09:36:33Z")

</div>

In normal folder tab, I can use ctrl+c/ctrl+v to copy&paste files directly into Telegram ( default explorer or all other explorer-like app can do the same thing). But it can not work in the search result tab, is anything I can do to make this function work ?

Thanks

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [December 12, 2023, 10:50am UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/2 "2023-12-12T10:50:58Z")

</div>

Can you copy & paste the same file from Search Results in Opus into a new folder in File Explorer? If that works, the problem is more likely to be on the Telegram side of things.

I'd also check what happens if you go to the file's real location and copy & paste it from there. That may reveal it's the file (or folder it's in, e.g. one with a very long path) which Telagram has the issue with, rather than Search Results being the cause.

---

<div class="post-metadata">

**Author:** ![lxp](https://resource.dopus.com/user_avatar/resource.dopus.com/lxp/32/33734_2.png) [@lxp](https://resource.dopus.com/u/lxp)\
**Post date:** [December 12, 2023, 10:51am UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/3 "2023-12-12T10:51:29Z")

</div>

Try a little script.

```javascript
// https://resource.dopus.com/t/paste-files-to-telegram/47405

function OnClick(clickData) {
	DOpus.SetClip(clickData.func.sourcetab.selected);
}

```

> **Button as XML**
>
> ```plaintext
> <?xml version="1.0"?>
> <button backcol="none" display="both" label_pos="right" textcol="none">
> <label>CopyFilesFromCollection</label>
> <icon1>#clipcopy</icon1>
> <function type="script">
> <instruction>@script JScript</instruction>
> <instruction>// https://resource.dopus.com/t/paste-files-to-telegram/47405</instruction>
> <instruction />
> <instruction>function OnClick(clickData) {</instruction>
> <instruction>	DOpus.SetClip(clickData.func.sourcetab.selected);</instruction>
> <instruction>}</instruction>
> </function>
> </button>
> 
> ```

[How to use buttons and scripts from this forum](https://resource.dopus.com/t/how-to-use-buttons-and-scripts-from-this-forum/3546)

---

<div class="post-metadata">

**Author:** ![r91085](https://resource.dopus.com/letter_avatar_proxy/v4/letter/r/a88e4f/32.png) [@r91085](https://resource.dopus.com/u/r91085)\
**Post date:** [December 12, 2023, 2:39pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/4 "2023-12-12T14:39:35Z")

</div>

Thanks for all the reply

1. Search Results ( Everything search result tab ) can copy & paste to the Opus other tabs and the Windows explorer.

2. If open the parent path of the target file in Search Results to a new Opus tab, then copy & paste to Telegram can work form the new tab. Just like I said, in normal Opus floder tab , it can work

3. Tried the script and the script can copy & paste to Telegram sucessfully from the search result tab.

So, what's the root cause? Could I make copy & paste work without using a new Button & script ?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![bytim](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@bytim](https://resource.dopus.com/u/bytim)\
**Post date:** [September 22, 2024, 10:27am UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/6 "2024-09-22T10:27:59Z")

</div>

After copying files from collection to clipboard, it can only be pasted inside DO, it cannot be pasted anywhere outside of DO (including File Explorer / telegram / QQ / open file dialogs,etc.).  
it is DO's own problem.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [September 22, 2024, 3:03pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/7 "2024-09-22T15:03:16Z")

</div>

> [@bytim](#):
>
> it cannot be pasted anywhere outside of DO (including File Explorer / telegram / QQ / open file dialogs,etc.)

That is not the case here, and also contradicts what was said above in this thread.

Copy & paste from a collection into File Explorer works fine for me, at least for normal files.

(More exotic things might be more complicated, e.g. I didn't check what happens with files inside archives which are then added to collections.)

---

<div class="post-metadata">

**Author:** ![bytim](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@bytim](https://resource.dopus.com/u/bytim)\
**Post date:** [September 24, 2024, 12:17pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/8 "2024-09-24T12:17:23Z")

</div>

My OS is win11 23H2 22631.3296 .  
I tested again, and files can indeed be pasted into File Manager.  
but can not be pasted into many other applications.  
For example, copy a file from collection，then we can not pasted it to Everything's editor field.  
But copy a file from regular folder, we can do this.

 ![image](https://resource.dopus.com/uploads/default/original/3X/1/2/124628de0901908de5d3269e19626333a6324b90.png)

In notepad‘ Open File dialog，we can paste the path of a file in clipboard by pressing Ctrl+V,  
While copied a file from collection，we can not paste it.

Sorry,I hope you can understand what I'm saying...

---

<div class="post-metadata">

**Author:** ![PassThePeas](https://resource.dopus.com/user_avatar/resource.dopus.com/passthepeas/32/50972_2.png) [@PassThePeas](https://resource.dopus.com/u/PassThePeas)\
**Post date:** [September 24, 2024, 1:25pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/9 "2024-09-24T13:25:09Z")

</div>

I think you mix copying a file, and copying its path.  
When you copy (a file) from Opus, it can be pasted in applications (such as File Explorer) which accept a file as an input.  
But when you're talking about Everything editor field or notepad Open File Dialog (which by the way is the system Open File Dialog), they are expecting text, not a file.  
To copy a file path from Opus, there are various options at your disposal (full path, just the filename, etc ...). They are accessible through the standard "EDIT" menu (Ctrl+Shift+C for instance to copy the full file path).

---

<div class="post-metadata">

**Author:** ![bytim](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@bytim](https://resource.dopus.com/u/bytim)\
**Post date:** [September 24, 2024, 2:54pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/10 "2024-09-24T14:54:56Z")

</div>

no no no...  
when pressing Ctrl+C to copy a file，you can press Ctrl+V to paste its path to the [open file dialog].  
just try it please...

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [September 24, 2024, 3:04pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/11 "2024-09-24T15:04:37Z")

</div>

That's a function of the thing you are pasting _into_, and only happens if it understands files on the clipboard can convert them to text paths to put into the text field.

Most text fields won't do that (e.g. try pasting into Notepad) but we made it so the path field in Opus supports it.

---

<div class="post-metadata">

**Author:** ![bytim](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@bytim](https://resource.dopus.com/u/bytim)\
**Post date:** [September 24, 2024, 3:46pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/12 "2024-09-24T15:46:18Z")

</div>

This is Open File Dialog of notepad.exe

 ![image](https://resource.dopus.com/uploads/default/original/3X/3/0/30aeb95edc4efa831d3e6236354704965efe3596.png)  
Consider this：  
Copy a file from File Explorer，and then we can press Ctrl+V to paste its path to the edit field.  
Copy a file from regular folder in DOpus，and then we can press Ctrl+V to paste its path to the edit field.  
Copy a file from collections in DOpus，then we can not press Ctrl+V to paste its path to the edit field.

Isn't that a problem？

when using this script:

```auto
DOpus.SetClip(clickData.func.sourcetab.selected);

```

We manage to paste it !  
Isn't that a problem with " **Clipboard COPY**"？

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [September 24, 2024, 3:49pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/13 "2024-09-24T15:49:13Z")

</div>

> [@bytim](#):
>
> This is Open File Dialog of notepad.exe

I meant Notepad itself, not a File Open dialog.

> [@bytim](#):
>
> Consider this：  
> Copy a file from File Explorer，and then we can press Ctrl+V to paste its path to the edit field.  
> Copy a file from regular folder in DOpus，and then we can press Ctrl+V to paste its path to the edit field.  
> Copy a file from collections in DOpus，then we can not press Ctrl+V to paste its path to the edit field.
> 
> Isn't that a problem？

No, it's completely normal. The File Open dialog and most programs that are not Opus will not understand filepaths that point to collections, because collections are an Opus concept.

---

<div class="post-metadata">

**Author:** ![bytim](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@bytim](https://resource.dopus.com/u/bytim)\
**Post date:** [September 24, 2024, 3:56pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/14 "2024-09-24T15:56:46Z")

</div>

so， what is the difference between **Clipboard COPY** and DOpus.SetClip(clickData.func.sourcetab.selected) ？

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [September 24, 2024, 10:48pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/15 "2024-09-24T22:48:39Z")

</div>

The format of the data on the clipboard. One puts files on the clipboard, the other puts text on the clipboard.

---

<div class="post-metadata">

**Author:** ![galaxyhub](https://resource.dopus.com/user_avatar/resource.dopus.com/galaxyhub/32/42793_2.png) [@galaxyhub](https://resource.dopus.com/u/galaxyhub)\
**Post date:** [September 25, 2024, 7:13am UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/16 "2024-09-25T07:13:55Z")

</div>

**Clipboard SET _text_** will also put text on the clipboard,  
 ![image](https://resource.dopus.com/uploads/default/original/3X/6/8/68dc27fafad47b5099ccb7ad9362d7ce75b22ecc.png)

---

<div class="post-metadata">

**Author:** ![bytim](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@bytim](https://resource.dopus.com/u/bytim)\
**Post date:** [September 28, 2024, 2:39pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/17 "2024-09-28T14:39:33Z")

</div>

In most places，it is "file:///C:/test/111.txt"  
but in collections，it is not

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [September 28, 2024, 2:43pm UTC](https://resource.dopus.com/t/paste-files-to-telegram/47405/18 "2024-09-28T14:43:09Z")

</div>

It's easy to get the full (non-collection) path to something inside a collection and put that into the clipboard.

But that would need to be a separate hotkey or button. If you replaced the normal Ctrl-C with that, it would stop you being able to copy and paste files (you'd paste a text file with the path inside it, instead, when pasting into Opus, and nothing at all would happen when pasting into File Explorer).
