Devam Ediyor

490374 JavaScript Script Conversion

Convert some code to work with plupload script,

Here is the code portion in the working basic php script;

<script type="text/javascript" src="./[url removed, login to view]"></script>

<script type="text/javascript">

function setType(){

[url removed, login to view]("Content-Type").value = getMIMEtype([url removed, login to view]("file").value);



it's then set in the script by this;

<input type="hidden" name="Content-Type" id="Content-Type" value="">

File to upload :

<input name="file" id="file" type="file">


<input type="submit" value="Upload File to CDN" onClick="setType()">


I need to replicate the same in the attatched script, I think it applies here;

multipart_params: {

'key': '${filename}', // use filename as a key

'Filename': '${filename}', // adding this to keep consistency across the runtimes

'acl': 'public-read',

'Content-Type': 'MIMETYPEHERE',

'success_action_status': '201',

'AWSAccessKeyId' : '<?php echo $accessKeyId; ?>',

'policy': '<?php echo $policy; ?>',

'signature': '<?php echo $signature; ?>'},

that is all - simple, hope you can help.

p.s there is more work if you can do it as seen in the image but this is the basic core of what I need & I think it's very simple!

Beceriler: Her şey Kabul, Java, Javascript, PHP, Kabuk Betiği

Daha fazlasını gör: js script, java core, image conversion, document conversion, core value, code convert javascript code, image replicate, simple java function, script src, java simple function, text javascript, form hidden submit, convert javascript function java code, basic javascript, java simple file input, javascript read text, javascript signature, php script echo, convert php code javascript, java key value, upload image php java, script hidden, javascript file upload, javascript php function, php convert text image

İşveren Hakkında:
( 9 değerlendirme )

Proje NO: #2236285