Pure ASP Upload 2.1.7 CODE

Anyone familar with the Code inside Pure ASP Upload 2.1.7 Dreamweaver extension?
3 kids(DS1 6 Nov, DS2 8 Feb, DS3 24 Dec) a hubby and two cats - I love to save every penny I can!
:beer:

Comments

  • meclive
    meclive Posts: 482 Forumite
    Part of the Furniture 100 Posts Combo Breaker
    Whats the problem??

    If its a legitimate copy ask in the support forum:

    http://www.dmxzone.com/forum/default.asp?NewsId=1622
  • katskorner
    katskorner Posts: 2,972 Forumite
    Ah you see now the problem is I don't actually have the extension. What I do have is code written by someone else that I am trying to modify and some of it is tricky to work out. (Pls dont tell me to get it as I can't for this project as I have no control over budgets).

    I want to change the params so that it accepts GIF,JPG etc instead of doc so I changed the pau_extension param to "GIF,JPG,BMP,PNG,JPEG" rather than "DOC" but for some reason it is still validating on DOC. Any idea if I have to change anything else?
    3 kids(DS1 6 Nov, DS2 8 Feb, DS3 24 Dec) a hubby and two cats - I love to save every penny I can!
    :beer:
  • bump - need some help if anyone can please - ta.
    3 kids(DS1 6 Nov, DS2 8 Feb, DS3 24 Dec) a hubby and two cats - I love to save every penny I can!
    :beer:
  • mcerazer
    mcerazer Posts: 68 Forumite
    basically you got added mime media type to make it work. I did this 6 months ago for my site i cant remember how i did it it was in php not asp .
  • katskorner
    katskorner Posts: 2,972 Forumite
    mcerazer wrote:
    basically you got added mime media type to make it work. I did this 6 months ago for my site i cant remember how i did it it was in php not asp .

    ? Mime media type how - which parameter needs modifying or is there more to it than that? Anyone know?
    3 kids(DS1 6 Nov, DS2 8 Feb, DS3 24 Dec) a hubby and two cats - I love to save every penny I can!
    :beer:
  • katskorner
    katskorner Posts: 2,972 Forumite
    Ok for anyone else who has this problem.

    I fixed it by changing the extension parameter pau_Extensions to accept "gif, bmp, jpg, jpeg,png" and then i trawled the code to find the two Javascript calls to CheckFileUpload and CheckOneFileUpload to change the hardcoded parameter from "doc" to "gif, bmp, jpg, jpeg,png".

    Now it allows me to upload the correct file type.

    Problem with not having the extension software is that Dreamweaver does not do the work for you in changing the hardcoded values once you give it parameters!
    3 kids(DS1 6 Nov, DS2 8 Feb, DS3 24 Dec) a hubby and two cats - I love to save every penny I can!
    :beer:
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 349.9K Banking & Borrowing
  • 252.7K Reduce Debt & Boost Income
  • 453K Spending & Discounts
  • 242.9K Work, Benefits & Business
  • 619.7K Mortgages, Homes & Bills
  • 176.4K Life & Family
  • 255.8K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 15.1K Coronavirus Support Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.