Secure File Upload

  0 rating
9/18/2015 4:37:39 PM
2/17/2016 9:26:25 AM
Provider: jonathanrobbins

About

Most file validators ultimately check the file extension the Secure File Upload compares the Byte Array Sequence of the File and compares it against known Byte Array sequences for files types such as PDF, docx, png and more.

The Module can check for the following file types however as the settings are stored in Sitecore you can add your own for any additional Mime Types

application/msword
application/octet-stream
application/ogg
application/pdf
application/vnd.openxmlformats-officedocument.wordprocessingml.document
application/x-rar-compressed
application/x-msdownload
application/x-shockwave-flash
application/x-bittorrent
application/x-font-ttf
application/x-zip-compressed
audio/mpeg
audio/ogg
audio/x-wav
audio/x-ms-wma
image/bmp
image/gif
image/jpeg
image/tiff
image/png
image/x-icon
video/ogg
video/x-msvideo
video/x-ms-wmv

Secure File Upload Field

A new custom Webforms for Marketers Field that has additional properties that the Content Editor can change when the field is added to the Form. 

'Upload to' property is for setting the location in Sitecore where the file will be stored.
'Max File Size' defines the maximum size in MB the file can be. If left empty there will be no limit.
'Items' references the folder in Sitecore containing all the possible Mime Types - this is defaulted to the correct folder with the Value property being the ID of the Sitecore Item.
'Selected Values' one or many File types that are allowed to be uploaded. 

File Type Validator

A new custom Webforms for Markerters Validator that takes the Byte Array sequence of the file uploaded by the user can completes a SequenceEquals check against a the MimeTypes chosen by the Content Editor. If there is more than one match in byte sequencing the Validator uses the File extension to determine which of two the file is. If there is a match the validator returns success.

File Size Validator

A new custom Webforms for Marketers Validator that takes the Max File Size value and compares the file uploaded by the User and if the user's file is larger returns a false. This field can be applied to other WFFM fields if required - ensure the Max File Size can be defined by the Content Editor however.


Documentation

Documentation
  • Documentation > Blog post explaining the implementation and use - jonathanrobbins.co.uk
    implementation and use
    A DETAILS EXPLANATION OF THE MODULES IMPLEMENTATION AND USE CAN BE FOUND HERE - http://jonathanrobbins.co.uk/2015/10/06/sitecore-marketplace-module-secure-file-upload/
     
    0
Back
Release notes
Please insert section here whenever you add a new version of your Sitecore module package describing version number, new features, fixes and possible known issues.
Read more Back
Code examples

Solution screenshots(0)

Upload

Reviews (0)

Sort by: Date Most votes
  • Profile Avatar
    [fullName]

    Level: 0

    x0 x0 x0

    [date]

    [title]

    [text]

    Was this helpful?

    0

Comments (0)

Sort by: Date  Most votes

Leave a Comment

Comment must be field in
Post comment
loader

Write a review

Title can't be empty
Review can't be empty
Post review

Download

Title Description Download Action

Add File