Disable Upload Element Preview

ritesh123

Member
Hi All

I am using uploadfile element in forms.

i save a file using uploadfile element in form
When i again edit the form it shows me preview of that uploaded file.

Any idea how to disable this Preview of uploaded file
 
I can confirm the issue (ajax file upload)
+ popup can't be closed with "Close" button, only with the red top corner x.

I don't know if theseJS errors are related:

on page load
IndexSizeError: Index or size is negative or greater than the allowed amount
...querySelector;}finally{if(!y){if(C){x.setAttribute("id",C);}else{x.removeAttribu...
mootools-core.js (Zeile 201)

on Close button:
IndexSizeError: Index or size is negative or greater than the allowed amount
ctx.drawImage(canvas, x, y, w, h, 0, 0, w, h);
fileupload.js (Zeile 914

on closing with red x:
IndexSizeError: Index or size is negative or greater than the allowed amount
this.fireEvent('onClose', [this]);
window.js (Zeile 346)
 
Hi, You are talking about closing the Preview Window by CLOSE Buttton

I don't want at all that Preview Window, is there any way we can disable this preview window permanently?
 
I would also like to do this. Is there an option to disable the preview? I can't seem to find one.
 
Still no Solution.

No faced this issue in the past and it looks very basic to me

If it looks basic to you, feel free to fix it, and submit a PR, I'll happily merge your contributions.

Sorry if I sound snippy, but you have posted 7 times about this, in the Community (free) forum. If this is important enough to you to post 7 times, you might like to consider taking out a subscription, which is what funds people to work on the code.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top