R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
File uploads with Path
Last Post 16 Dec 2009 07:06 PM by csaxena. 5 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
jsheelyUser is Offline
New Member
New Member
Posts:34

--
08 Oct 2007 10:00 PM  
I'm attempting to do a file upload using the destination type Path

I want the path to be a set location with a variable file name (from the form field)

D:\location_to_folder\[frmFile.Name,Form]

However when doing this it doesn't appear to pickup that variable and the Debug output displays

D:\location_to_folder[frmFile.Name,Form]

Oddly enough dropping the \ and not displaying the file name but the variable name.

Any ideas? Do I have to generate the path before hand and pass it in as a variable. I'd rather not if I don't have too.

Thanks in advance for any help.
Jon

contactdpUser is Offline
Basic Member
Basic Member
Posts:475

--
08 Oct 2007 11:14 PM  
I believe it is thinking you are escaping [... try using \\

Thanks,
DP
Durga Prasad(DP) | Senior Web Engineer<br>R2integrated
jsheelyUser is Offline
New Member
New Member
Posts:34

--
08 Oct 2007 11:44 PM  
Very close. That was the problem on why the \ was being removed. However now the file is being saved as [frmFile.name,Form]

So still not transforming the variable correctly.
jsheelyUser is Offline
New Member
New Member
Posts:34

--
08 Oct 2007 11:55 PM  
I decided to forego the D:\location_to_folder\ for a relative path:
~/Portals/[PortalID,System]/location_to_folder/[frmFile.Name,Form]
contactdpUser is Offline
Basic Member
Basic Member
Posts:475

--
09 Oct 2007 12:52 AM  
~ may not work right all the time.. i suggest use

[PortalPath,System]location_to_folder/[frmFile.Name,Form]

note [PortalPath,System] will take care of the end /

Thanks,
DP
Durga Prasad(DP) | Senior Web Engineer<br>R2integrated
csaxenaUser is Offline
New Member
New Member
Posts:21

--
16 Dec 2009 07:06 PM  
I am running into the same issue. In my case I am getting the file name from a query which I then append to the path to pass to the File Operation to attach file in an email. The email gets sent out without the attachment. In debug mode nothing shows up after the "Actual" query that gets executed. I have tried replacing ~ with [PORTALPATH,System], but that did not work either. There are no errors in the EventLog. How do I troubleshoot this.

Here is the Action
File: Source Path: [PortalPath,System]subfolder/[path,qryDocDetails]. DestinationEmailAttachment Email Attachment.[originalfilename,qryDocDetails ]

Thanks in advance for your help,
Chhavi
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share