Closed chlebta closed 8 years ago
Hello, your image file returns:
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>F6E154917DF3896B</RequestId>
<HostId>2IxCDvH5fycbbTGAX9Qsy+VrjVTPL25IFWdS0DJRNrDIBrYc0m2RSObR94PhpEQk</HostId>
<wappalyzerData id="wappalyzerData" style="display: none"/>
<script id="wappalyzerEnvDetection" src="chrome-extension://gppongmhjkpfnbhagpmjfkannfbllamg/js/inject.js"/>
</Error>
Same issue here. (Lack of fully documentation i think. :smile:)
Hello,
I guess it's a CORS issue. Picture must be on the same domain. Is it the case?
Picture on the same domain. Cheked the source code, but need to work about the first view, so idk why i cannot get any response at console, network, etc.
Same problem here, the preview
option it's not working:
$('input[type="file"]').each(function(i) {
var folder = parseInt(getUrlParameter('id')) + '/',
image = (i + 1) + '.jpg';
$(this).ezdz({
text: 'Arrastrar imagen',
preview: 'http://www.website.com/images/' + folder + image
});
});
No image is shown in the box... Only the text.
It's not a CORS issue. I'll take a look when I have some free time.
Did you try the method?
$('[type="file"]').ezdz('preview', 'img/previously-uploaded-logo.png');
It's working that way! Thanks!
Works, but cannot setup with init. This is a hacky way for dinamically preview, works fine, but totally unnecessary, cause this is an issue, that you cannot close.
$('input[type="file"]').ezdz({
text: "Dummy",
className: "dummy_dropzone"
});
$('input[type="file"]').each(function(){
$(this).ezdz('preview', $(this).data("preview"));
});
Hello @Sentence
Are we talking about this: https://github.com/jaysalvat/ezdz#value I think it's what you need.
It can be set at init with:
<input type="file" name="file" data-value="image.jpg" />
or
$('.upload').ezdz({
value: 'image.jpg'
});
Hello, this is my code :
No image preview is shown in the dropzone ?