php - How to use $_FILES["file"]["size"]?

1mb = 1,048,576 bytes 2mb = 1,048,576x2= 2,097,152 bytes if maximum upload size 2mb  $name= $_FILES['file']['name']; $tmp_name= $_FILES['file']['tmp_name']; $size= $_FILES['file']['size']; $path= "Uploads/Files/"; if ($size < 2097152){move_uploaded_file($tmp_name, $path . $name);echo 'Uploaded!';} ...

View More
  Dibaca 1840 kali

Could not find com.android.tools.build:gradle:3.0.1

add the repository also in the app/build.gradle file: classpath 'com.android.tools.build:gradle:3.0.1' TOdependencies { classpath 'com.android.tools.build:gradle:3.1.2' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'} ...

View More
  Dibaca 1688 kali

Android Studio Could not find com.android.tools.lint:lint-gradle:26.1.2

in proj.android-studio/app/build.gradle Fixed after I added google() to repositories repositories {jcenter()google()}   ...

View More
  Dibaca 2163 kali