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

If you are just worried about the look of their name in the text would ["my
file"internal://md5md5md5.jpg] suffice?

Andy


> -----Original Message-----
> From: massenmensch [mailto:kontakt@xxxxxxxxxxxxxxx]
> Sent: Tuesday, February 17, 2004 2:08 PM
> To: ewiki@xxxxxxxxxxxxx
> Subject: [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
> 
> 
> 
> 
> 
> _________________________________________________
> Scanned on 17 Feb 2004 20:05:44
> Scanning by http://erado.com

Other related posts: