Skip to content
Permalink
Browse files

fixed putFile

  • Loading branch information...
millinon committed Feb 16, 2017
1 parent fbd8d38 commit 1156cfdf515ac700ad46541ac2989d845362ba00
Showing with 6 additions and 6 deletions.
  1. +3 −4 bin/putFile.hh
  2. +1 −0 uploads/.gitignore
  3. +2 −2 www/include/config/key_config.hh
@@ -4,7 +4,6 @@
set_include_path(dirname(__FILE__).'/../www/include');
require ('api/api.hh');
require ('helpers.hh');
if (!isset($argv)) {
@@ -28,10 +27,10 @@ if (!file_exists($file)) {
exit(1);
}
if ($argc > 2) {
awsHelper::init();
if ($argc > 2) {
$inuse = false;
$key = pathinfo($argv[2], PATHINFO_FILENAME);
@@ -145,7 +144,7 @@ if ($argc > 2) {
echo
json_encode(
jump_api::route(
api_router::route(
[
'action' => 'genFileURL',
'extension' => $ext,
@@ -0,0 +1 @@
*
@@ -3,9 +3,9 @@
class key_config {

const MIN_LENGTH = 3;
const MAX_LENGTH = 64;
const MAX_LENGTH = 128;

const target_length = 6;
const target_length = 7;

// this is what generated URLs will look like
//const regex = '[\\w]{'.key_config::MIN_LENGTH.','.key_config::TARGET_LENGTH.'}';

0 comments on commit 1156cfd

Please sign in to comment.
You can’t perform that action at this time.