Contact Us About NVE-CMS @ stevem@nvecs.com


Event Calendar

Testimonials

Visitors

  • 18796 Current Visitors
 

Ask Current Questions

Get all your questions answered here by the CMS Tech 

 

On Tuesday, December 18, 2012 Steve Miller asked
? what Upload component do I use when developing my addon
On Tuesday, December 18, 2012 Steve Miller answered
add these include files to the top of your upload file procedure page
 
<!-- #Include File="../../../bin/upload.asp" -->
<!-- #Include File="../../../bin/uploader_validation.asp" -->
the uploader_validation.asp page tests for Persits upload component on the webserver
 
If not found it defaults to the internal file uploader.
 
then just add this code to do the upload

<%
UploadTo = "../../../YourFolder"
Select Case useObj
Case "Persits.Upload.1"
    Count = Uploader.SaveVirtual(UploadTo)
    For Each File In Uploader.Files
         If strFile = "" Then
           strFile = File.FileName
         Else
            strFile = strFile  & "," & File.FileName
         End If
    Next
Case Else
' User the internal file uploader function
For Each File In Uploader.Files.Items
    File.SaveToDisk Server.Mappath(UploadTo)
    If strFile = "" Then
           strFile = File.FileName
         Else
            strFile = strFile  & "," & File.FileName
         End If
Next
End Select
 
to get the value of a form field use the code below
myvar=Uploader.form("YourFormField")
 
%>
 

Photo Gallery

Search For A Question

Recent Questions

  • How do I set text header like this

    My Header


    ? Is there any way to set one of my addon pages as the home page
    ? How can I hide addon menus in the left/right columns without removing them from the master link list
    ? what Upload component do I use when developing my addon
    ? Can I get a link list of all pages in the website for the addon that I am developing

Most Commonly Asked Questions

  • ? what Upload component do I use when developing my addon
    ? Can I get a link list of all pages in the website for the addon that I am developing
    ? Why are the email forms not work on my website
    ? How do I send email from my addon
    ? Embed a script page from an addon into the left/right menu sections under the addon menu.
Copyright © 2024 nvecs.com
Home  |  About CMS  |  Contact Us  |  Back To Top