Welcome, Guest
  • Page:
  • 1

TOPIC: value of an uploaded file

value of an uploaded file 1 year, 11 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, 10 months ago #14928

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

Re: value of an uploaded file 1 year, 9 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: 62
  • 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.65 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint