I am using imacros with mozilla. I am trying to upload images to a website which uses file uploader like pressing ctrl key and select all images from a folder and uploader. I am unable to record this event by imacro.
Related
I am building a website where I am uploading wallpapers on s3 bucket and I want users to be able to download those wallpapers from my website on the click of a button.
Earlier I was using simple anchor tag and download attribute to download the image file but now if I click on he download button my image just opens in full size in new tab.
I am not sure why this is happening and how can I Fix this. I want to be able to download the image on click not open it new tab.
I am using Sitecore 9.0. There used to be an option while uploading an image to use either the normal "File Upload" or "Upload File Advanced" to enter the Alt Text before uploading the image in the upload dialog box itself. It is now missing.
Can someone guide me on how to get it back? The Alt Text option used to be visible in the red highlighted box below.
The File Upload dialog allowing you to set the Alternate text is based on a Flash uploader. There is an Upload.Classic setting in Sitecore.config indicating whether the uploading runs in classic (no Flash) mode or not; the default value is false, so that the Flash uploader should be used by default:
<setting name="Upload.Classic" value="false" />
But, for security reason, Flash is not enabled by default in modern browsers, therefore, if you want to use the Flash uploader you also have to allow it in your browser.
How to allow Flash in Google Chrome browser?
To the left of the web address, click Lock or Info icons;
Then at the bottom on the popup, click Site Settings;
In the new tab, to the right of "Flash", click the Down arrow and then select Allow;
Go back to the site and reload the page;
Note, that Sitecore client interface issues a persistent sc_fv cookie where it stores the Flash status, its value for the blocked Flash mode is '0.0.0'. Therefore, once the Flash is allowed in your browser you need to delete the sc_fv cookie to force the Flash status check.
So, summing all up, if you wish to use the Flash file uploader you have to complete 3 simple steps below:
Make sure that Upload.Classic setting is set to false in Sitecore.config;
Allow Flash in your browser;
Delete sc_fv cookie.
And you will get the Alternate text field back in the Upload File dialog:
I created a button and assigned command to it. Once user clicks the button open file dialog (<input type="file"/>) should be displayed. When file is selected it has to be uploaded to the server. So what is the fastest way to show open file dialog and get user input?
First upload in Sitecore is not straight forward. If we take the example of the Package Upload Form, we see that it makes use of 2 aspx pages. Moreover, when uploading on the CMS, it will store the information into the database.
Possible Solution:
Create an Upload Form which will appear when the user clicks on the button.
When user selects a file, you will need first to upload it before being able to have access to it. Once uploaded, you just need to read the Zip file in order to know the structure.
Code Example:
Check the UploadForm.xml. Path: Website\sitecore\shell\Applications\Install\Dialogs\Upload package
You will see the 2 aspx pages in the same folder. The codebehind is found in the Sitecore.Client.dll
Thanks
Let's pretend we have to make a simple web page that allows users to upload files on the server.
When a user arrives on the page, the files selection window has to open automatically.
The user has to be able to select and upload multiple files at once.
igUpload control does fit nicely in this scenario.
Unfortunately, I didn't find a way to programmatically display the browse window to select a file for upload, without having to click the Upload File button. I'm using Ignite UI 13.2, which documentation could be found here and there is a related question from Infragistics forum here.
I've seen few examples, where overrides of private methods are suggested in order to modify default behavior, but currently, I couldn't find the appropriate place to intervene.
igUpload is using <input type="file"/> and in most browsers it is not allowed opening file selections window( via javascript ) because of security reason( Trigger a file input to open via javascript) . Probalby only IE allows you to achieve this - you can try:
var id = "upload";
$('#' + id).igUpload();
setTimeout(function () {
$('#' + id + '_ibb_fp').click();
}, 0);
I am developing a e-commerce project using django.It is a image based project where user can download image after subscription.
There is a single image download subscription package available to the user where user can only download an image for a single time.My home page have an image thumbnail.
If any user wants to download any image ,he can click on the selected image and then will take the user in the image detail page of the clicked image with download button option.If he subscribed,he can download the image.
Though its a single image download subscription,so user can only download a single image.but the problem is,after a single download,if the user don't leave the page,he is able to download the same image for an unlimited time.I want to restrict it but i have no idea how to do this in django.
After a single download,redirecting the user to the home page or my image thumbnail page can be solution,but i don't think it will be great idea.Because there will be a possibility to disconnection of internet or something right after the download event which will create situation where may be the user can not complete the download action.
so i want to settle the user in the image download page after a single download and immidietly wants to clear the session and restrict him to download the same image for unlimited time.
Can it be possible to clear the session after a single download,i think if i can clear the session after a single download or an event or whatever you say,then the user can not download the image for twice.Is it possible to clear the current session after an event in django?