[ewiki] How do I save uploads under their name and not internal://md5md5md5.bin?

Hello!

An option I am still missing (either I don't find it or it doesn't exist yet) 
is the ability to link uploaded binaries (be it images or other) my their 
name in the text, like [image.jpg] or [internal://image.jpg] (if that makes 
it easier for the parser).

So what I'd need would be to set the variable 

$id 

in 

ewiki_binary_store_file(&$filename, &$id, &$meta, $ext=".bin")

, so that 

if (empty($id)

 - which triggers the generation of the md5-sum-based internal name - gets 
negated. Can someone tell me where to set this best (as dirty hack) or how to 
implement it nicely.

If I understand correctly  ewiki_script_binary() is not used, so I looked at 
the downloads-plugin. Could I use the vars  EWIKI_UP_UPLOAD or (if set) 
UPL_NEWNAM in function ewiki_page_fileupload(), where they are passed to (but 
where is that)?

I hope someone can help, greetings from Timm



Other related posts: