Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 952277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:52:05+00:00 2026-05-15T23:52:05+00:00

Hmmm…strange problems… I’m making a form to upload syllabi. Basically, someone go search for

  • 0

Hmmm…strange problems…

I’m making a form to upload syllabi. Basically, someone go search for a course and select the button next to the course that says “Upload Syllabi.” Next, a window will popup prompting them for the file. I pass this page info to insert the URL into the database etc.

<input name="upload" type="button" value = "Upload Syllabi" id = "uploads" onclick = "window.open('upload_syllabi.cfm?course=#course#&semest=#semester#&ref=#refnum#','popup','width=350,height=170,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"/>

It is passed to this page:

<cfset session.semester = #url.semest#>
<cfset session.course = #url.course#>
<cfset session.ref = #url.ref#>



    <form name = "uploadForm" enctype = "multipart/form-data" action = "upload_action.cfm">
    <table align="center" class = "contenttable">
      <tr>
        <td><h3>Upload Syllabi for <cfoutput><b>#session.semester# #session.course# #session.ref#</b></cfoutput></h3> </td>
      </tr>
      <tr>
        <td align="center">
    <input name="syllabiUpload" id = "uploader" type="file" />

    </td>
      </tr>
      <tr>
        <td align="center">
          <input type="submit" name="uploaded" id="uploaded" value="Upload" />
        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center"><a href="javascript:window.close();">[close]</a></td>
      </tr>
    </table>
    </form>

I had originally had no session variables…but I was having some problems with url.semest…and I had just ended up leaving them there.

Anyway…when the form is submitted it should go to this page:
upload_action.cfm

<cffile action="upload" filefield="syllabiUpload" destination="#SyllabiLoc#" nameconflict="makeunique">
<cfset SyllabiURL = "#SyllabiPath##cffile.serverfile#">

<cfquery name="checkSyllabi" datasource="#sacsds#" username="#sacsuser#" password="#sacsuser#">
SELECT  *
FROM    faculty.dbo.Syllabi
WHERE   faculty.dbo.syllabi.Semester = '#session.semester#' 
AND     faculty.dbo.syllabi.Refnum = '#session.ref#'
</cfquery>

    <cfif getSyllabi.recordCount is 0>
    <cfelse>
    <cffile action="delete" file = "#checkSyllabi.url#">   
    </cfif>

    <cfquery name="updateSyllabi" datasource="#sacsds#" username="#sacsuser#" password="#sacsuser#">
    UPDATE faculty.dbo.Syllabi
    SET url = '#SyllabiURL#'
    WHERE Semester = '#session.semester#' 
    AND  Refnum = '#session.ref#'
    </cfquery>
 <table align="center">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Uploaded</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>

</table>

I get this error when I click the submit button:

Invalid content type: ”.
The cffile action=”upload” requires forms to use enctype=”multipart/form-data”.

Kind of weird…cause I definitely have that line of code in my form…

hm….

EDIT: Continue Problem # 2.

Getting this error:

File D:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\http://uwf.edu/acad/Syllabi/Introduction to Maritime Studies Syllabus2.rtf specified in action delete does not exist.

Did i do the cffile delete wrong?
:\ Not sure..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:52:05+00:00Added an answer on May 15, 2026 at 11:52 pm

    could be a browser issue or you have some kind of anti-virus, proxy or firewall messing with the upload. As you say, you are telling the browser to use the right encoding so presumably that is getting lost in translation somewhere.

    Option 2 is you are seeing cached pages and not the version with the correct form. Try clearing out your browser cache.

    EDIT: Actually the problem is simple. You haven’t told it to use method=”POST” on the form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hmmm... the Java Iterator<T> has a remove() method but not a replace(T replacement) method.
Hmmm. Consider this program, whose goal is to figure out the best way to
Well, there are other ways (hmmm... or rather working ways) to do it, but
I was working on a program,that I need to support new additions. Hmmm. Let
Hmmm how to explain? ;) I think I just let the crappy coding to
Hmmm I don't know how to clearly state the title. hopefully the following explanation
Directory is like so: test.html blah hmmm Inside blah we have all the applet
Hmmm... its kinda challenging to find a method for reading/writing data faster enough to
Hmmm this seems silly, so I feel silly. I have a custom operation on
Hmmm, so how is this done? I have a class class Themes extends Access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.