• I have v1.3.7.7 installed. File uploading has problems with the field. The plugin is set to use jQuery because regular JS mode does not work on this site – the “Choose files” link does nothing when clicked.

    So with “Enable jQuery” enabled the clicking of “Choose files” works where I can select a file and it is uploaded, but drag and drop does not work. With drag and drop a message is displayed “The uploaded file exceeds the maximum upload size of your server.” This is with small files, 12K and 37K in my tests. That does not occur with the clicking of “Choose files”. This is not a problem PHP upload size limit.

    Tested on Firefox and Chrome. Page HTML has been validated.

    What is causing this?

    Here’s the page: https://www.multiviewfurniturerepair.com/#requestandestimate

    • This topic was modified 5 months, 4 weeks ago by Mark.
    • This topic was modified 5 months, 4 weeks ago by Mark.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @wpsec ,

    I tried to access the link but it seems not accessible in my end, maybe there’s firewall or some kind of restrictions.

    Can you provide the following details?

    1. Screenshot of your form under “Contact -> Edit Contact -> Form”? (like this- https://ibb.co/sbJ7sLC)
    2. Screenshot of Contact -> Drag & Drop Upload settings
    3. Check your max upload limit in WordPress -> Media Library (like this – https://ibb.co/Yyd3CVT)

    Please let me know.

    Glen

    Thread Starter Mark

    (@wpsec)

    Hi Glen, thanks for your assistance.

    The site is using Cloudflare so that might be preventing your access. I don’t have any control over the Cloudflare aspects of the site at this time so I can’t check into that further. But try to view it again just in case the site was temporarily offline for whatever reason.

    Max upload on the site is 128MB, confirmed via Media Library upload section.

    Form config: https://ibb.co/2YTvV2g

    Drag and drop settings: https://ibb.co/Pjn5Gzy

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Thanks @wpsec yeah it seems the [mfile] tag configuration is correct, and your max upload limit is good enough to handle large file. Maybe there’s some kind of restrictions on the server that doesn’t allow to upload files or something.

    The link/website is still not accessible https://ibb.co/FwNjWJY

    Can you try and inspect element and see what on the response?

    See this for your reference – https://drive.google.com/file/d/1aCrr8WbYq0211ENKa28SYmh2_L41V6mV/view?usp=sharing

    Thread Starter Mark

    (@wpsec)

    Glen I can upload files using the “Browse” link, what does not work is dragging and dropping a file from a file manager. I open a file manager on my system and open the form web page in my browser. I grab an image file in the file manager and drag it over to the form’s file upload section. At that point the border around that field highlights (border turns darker and bolder to show it’s the active target). Then I drop the file over the form field and nothing happens, the file is not uploaded. And at that time in the browser inspector there is no network activity.

    • This reply was modified 5 months, 3 weeks ago by Mark.
    Thread Starter Mark

    (@wpsec)

    Also, there are no Javascript errors in the console.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Thanks @wpsec maybe there’s a javascript conflict with the other plugins or custom script from your theme that may be triggering when the file is drag/dropped.

    I’d like to help but I cannot access your site. Maybe you could try activating/deactivating plugins or switching to another theme to troubleshoot the issue.

    Please let me know.

    Thread Starter Mark

    (@wpsec)

    Testing further, drag and drop works in Google Chrome when dragging a file from a file manager onto the form, but does not work in Firefox or Chromium browsers. In Firefox nothing happens, in Chromium I see the message stating that “The uploaded file exceeds the maximum upload size of your server.”

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Okay, thank you for the information. It might be a browser compatibility issue.

    I will check and see if I can replicate the issue and apply a possible fix.

    Are you using a Mac or a Windows?

    Thread Starter Mark

    (@wpsec)

    Using Linux, Ubuntu.

    Firefox 125.0.3

    Chromium: 113.0.5672.126

    Thread Starter Mark

    (@wpsec)

    Any update on this?

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    @wpsec I’ve checked with Mac and Windows using Firefox, and I don’t see any issues.

    Currently, I don’t have Ubuntu OS, but I will try to find it or see if someone else can help us.

    I’ve made a changes on the JS file under our plugin “/assets/js/codedropz-uploader-jquery.js” file to logs files info after dropping the files (use the code on the link below and replace the old version), after that, please test it in your Firefox and let me know if you see anything on the browser Console logs.

    https://pastebin.com/raw/CKwpbbSM

    Please let me know.

    Glen

    Thread Starter Mark

    (@wpsec)

    Using your modified JS file, the drop event is triggered. But nothing is in the file list object. Here’s the output from the console:

    FileList []
    ?
    length: 0
    ?
    <prototype>: FileListPrototype { item: item(), length: Getter, … }Object { 
    
    originalEvent: drop, type: "drop", isDefaultPrevented: Ne(), target: div.codedropz-upload-inner, currentTarget: div.codedropz-upload-handler, relatedTarget: null, timeStamp: 20471, jQuery37109784926069615019: true, delegateTarget: div.codedropz-upload-handler
    , handleObj: {…}, … }
    ?
    currentTarget: <div class="codedropz-upload-handler">
    ?
    data: undefined
    ?
    delegateTarget: <div class="codedropz-upload-handler">?
    handleObj: Object { type: "drop", origType: "drop", guid: 21, … }
    ?
    isDefaultPrevented: function Ne()?
    isPropagationStopped: function Ne()
    ?
    jQuery37109784926069615019: true
    ?
    originalEvent: drop { target: div.codedropz-upload-inner
    , buttons: 0, clientX: 726, … }
    ??
    altKey: false
    ??
    bubbles: true
    ??
    button: 0
    ??
    buttons: 0
    ??
    cancelBubble: false
    ??
    cancelable: true
    ??
    clientX: 726
    ??
    clientY: 651
    ??
    composed: true
    ??
    ctrlKey: false
    ??
    currentTarget: null
    ??
    dataTransfer: DataTransfer { dropEffect: "move", effectAllowed: "uninitialized", mozCursor: "auto", … }
    ???
    dropEffect: "move"
    ???
    effectAllowed: "uninitialized"
    ???
    files: FileList []
    ????
    length: 0
    ????
    <prototype>: FileListPrototype { item: item(), length: Getter, … }
    ???
    items: DataTransferItemList { 0: DataTransferItem, 1: DataTransferItem, length: 2 }
    ????
    0: DataTransferItem { kind: "string", type: "text/x-moz-url" }
    ????
    1: DataTransferItem { kind: "string", type: "text/plain" }
    ????
    length: 2
    ????
    <prototype>: DataTransferItemListPrototype { add: add(), remove: remove(), clear: clear(), … }
    ???
    mozCursor: "auto"
    ???
    mozSourceNode: null
    ???
    mozUserCancelled: false
    ???
    types: Array [ "text/x-moz-url", "text/plain" ]
    ???
    <prototype>: DataTransferPrototype { setDragImage: setDragImage(), getData: getData(), setData: setData(), … }
    ??
    defaultPrevented: true
    ??
    detail: 0
    ??
    eventPhase: 0
    ??
    explicitOriginalTarget: <div class="codedropz-upload-inner">
    ??
    isTrusted: true
    ??
    layerX: 303
    ??
    layerY: 24
    ??
    metaKey: false
    ??
    movementX: 0
    ??
    movementY: 0
    ??
    offsetX: 0
    ??
    offsetY: 0
    ??
    originalTarget: <div class="codedropz-upload-inner">
    ??
    pageX: 726
    ??
    pageY: 3413
    ??
    rangeOffset: 0
    ??
    rangeParent: null
    ??
    relatedTarget: null
    ??
    returnValue: false
    ??
    screenX: 2344
    ??
    screenY: 808
    ??
    shiftKey: false
    ??
    srcElement: <div class="codedropz-upload-inner">??
    target: <div class="codedropz-upload-inner">
    ??
    timeStamp: 20471
    ??
    type: "drop"
    ??
    view: Window https://www.multiviewfurniturerepair.com/#requestandestimate
    ??
    which: 1
    ??
    x: 726
    ??
    y: 651
    ??
    <get isTrusted()>: function isTrusted()
    ??
    <prototype>: DragEventPrototype { initDragEvent: initDragEvent(), dataTransfer: Getter, … }
    ?
    relatedTarget: null
    ?
    target: <div class="codedropz-upload-inner">
    ?
    timeStamp: 20471
    ?
    type: "drop"
    ?
    <prototype>: Object { constructor: Event(e, t), isDefaultPrevented: qe()
    , isSimulated: false, … }
    ??
    altKey: 
    ??
    bubbles: 
    ??
    button: 
    ??
    buttons: 
    ??
    cancelable: 
    ??
    changedTouches: 
    ??
    char: 
    ??
    charCode: 
    ??
    clientX: 
    ??
    clientY: 
    ??
    code: 
    ??
    constructor: function Event(e, t)??
    ctrlKey: 
    ??
    detail: 
    ??
    eventPhase: 
    ??
    isDefaultPrevented: function qe()??
    isImmediatePropagationStopped: function qe()??
    isPropagationStopped: function qe()
    ??
    isSimulated: false
    ??
    key: 
    ??
    keyCode: 
    ??
    metaKey: 
    ??
    offsetX: 
    ??
    offsetY: 
    ??
    pageX: 
    ??
    pageY: 
    ??
    pointerId: 
    ??
    pointerType: 
    ??
    preventDefault: function preventDefault()??
    screenX: 
    ??
    screenY: 
    ??
    shiftKey: 
    ??
    stopImmediatePropagation: function stopImmediatePropagation()??
    stopPropagation: function stopPropagation()??
    targetTouches: 
    ??
    toElement: 
    ??
    touches: 
    ??
    view: 
    ??
    which: 
    
    

    • This reply was modified 5 months, 3 weeks ago by Mark.
Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.