Redmi Note 5 Specification And Price

Image
See the Redmi Note 5 Specification And Price

Display


18:9 Full screen displayCustom display with rounded corners
Procesor & Memory

Octa-core processorSnapdragon 625 2.0GHz maxAdreno 506Dimensions
Height: 158.5mmWidth: 75.45mmThickness: 8.05mmWeight: 180g

Display
18:9 Full screen display15.2cm (5.99) (diagonally)18:9 screen aspect ratio2160 x 1080 FHD+ resolution, 403 PPI, 1000:1 contrast ratio450 nits brightness84% of NTSC color gamutSunlight displayNight displayReading modeColor temperature adjustmentStandard mode
Battery
4000mAh (typ) / 3900mAh (min)Non-removable5V/2A
Camera & Video
12MP rear camera12MP, 1.25μm large pixel5-element lens, ƒ/2.2 apertureDual LED flashPDAFLow light enhancementHDRPanoramaBurst modeFace recognition5MP front cameraBeautify 4.0Selfie-lightSelfie countdownFace recognition1080p/720p video, 30fps
Networks & Connectivity
Supports 802.11a/b/g/n protocolsSupports 2.4 / 5G WiFi / WIFI Direct / WiFi DisplayBluetooth 4.2, Bluetooth HID4G dual SIM:
3-choose-2 hybrid S…

Uploading File To Amazon S3 Bucket Using HTML

Learn How you can upload files to Amazon Simple Storage Service in HTML.


amazon web services - s3

In order to upload a file you need to have the following things
  1. Amazon account  Secret Key 
  2. Amazon account  Access Key
And also we need to generate the policy document using BASE_64 Encoding and also Signature.

HTML Code for S3 Upload

<html>
<head>
<title>S3 POST Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>

<body>
<form action="
https://YOURBUCKETNAME.s3.amazonaws.com/" method="post" enctype="multipart/form-data">
<input type="hidden" name="key" value="SUBFOLDER/${Filename}">
<input type="hidden" name="AWSAccessKeyId" value="AWSACCESSKEY">
<input type="hidden" name="acl" value="public-read">
<input type="hidden" name="success_action_redirect" value="
http://www.google.com
">
<input type="hidden" name="policy" value="POLICYDOCUMENT">
<input type="hidden" name="signature" value="GENERATEDSIGNATURE">
<input type="hidden" name="Content-Type" value="image/jpeg">
<!-- Include any additional input fields here -->

Select Your File :<input name="file" type="file"><br>
<input type="submit" value="Upload File">
</form>
</body>
</html>

Description 

  • Form Action
    • https://YOURBUCKETNAME.s3.amazonaws.com/ is the first folder of your Amazon S3 
  • Key
    • If you want to upload file under the sub folder then you can mention like SUB1/SUB2/${Filename} or if you don't want to upload file under the sub folder then you can mention /${Filename} so files will uploaded to under the main directory i.e., your bucket
  • AWSACCESSKEY
    • AccessKey which is provided during Amazon account signup
  • For POLICY DOCUMENT And For SIGNATURE
    • Visit the link http://www.jfileupload.com/products/js3upload/documentation/policygenerator.html
    • Enter your access key and secret key in the mention boxes
    • Now go to Policy Document box and paste the below coding highlighted in blue color.
    • {"expiration": "2015-01-01T00:00:00Z",
        "conditions": [ 
          {"bucket": "YOURBUCKETNAME"}, 
          ["starts-with", "$key", "SUBFOLDER/"],
          {"acl": "public-read"},
          {"success_action_redirect": "http://www.google.com"},
          ["starts-with", "$Content-Type", "image/jpeg"],
          ["content-length-range", 0, 1048576]
        ]
      }
    • I have set the expiration of this policy document to be till 2015 which means it will work till 2015 and after that it wont work.So you can set your own expiration date time .
    • Enter your bucket name and key name like you mention in HTML.
    • Finally mention the content type , In the above example i am uploading images so i mentioned image/jpeg so if you are using JPEG images then you can use the content type, otherwise you have to mention which content type that you are using.
Note : Policy document and HTML Should be same.

Popular posts from this blog

Gradle project sync failed. Basic functionality (e.g, editing, debugging) will not work properly.

How Automation Can Make You Better at Your Job

Best Expense Manager App For Your Android Phone