Welcome, Guest

value of an uploaded file
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: value of an uploaded file

value of an uploaded file 1 year, 8 months ago #13756

someone know how to get filename of an upload file.

I want to give possibility to put a web link of a file on a mailback
that user had upload on a form.

at this time in database I have local path only.

if someone can explain to me what I can do to change this.


/home/uploadir/_USER_UPLOAD_FILE.jpg

I want this: www.domain.fr/uploadir/_USER_UPLOAD_FILE.jpg

thanks
  • l.grube
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Laurent GRUBE

Re: value of an uploaded file 1 year, 6 months ago #14928

same. anyone?
  • eshraghi
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0

Re: value of an uploaded file 1 year, 5 months ago #15951

Here's a little Javascript snippet I've been playing with to do this:
// Begin Variables
var str1 ="{image1}";
document.write(str1.replace("/home/MyAccount/public_html/URL.com/components/com_facileforms/uploads/", "http://URL.com/components/com_facileforms/uploads/"));


This is part of a PHP file I've been working on to preview uploaded images. I don't have it perfected yet, but I thought I'd try to help out.

Let me know if this helps. I can send the rest of the PHP file if you need it.
  • erichhaubrich
  • OFFLINE
  • Senior Boarder
  • Web Ninja and Technology Geek
  • Posts: 61
  • Karma: 3
I love Breezing Forms! - It is the Killer App for Forms on Joomla!
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.31 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany