File upload problem - uploaded file is always 1 bytes

xav

New member
Hello,

I am quite new here, but love the app you made and plan to purchase it really fulfills all my needs.

Have an issue that would need your help.

I used this example to upload files
5_f40856482fe1e45ac8f1605885140a2d.png
Sample Choosing and uploading a file with html form! How to (ExeOutput)
To choose and upload a file without using HEScript code you can do as follow: > <head> > <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script> > <style> > input[type="file"]{ > color: transparent; > } > </style> > </head> > <html> > <body> > <script> > $(function () { > $('input[type="file"]').change(function () { > if ($(this).val() != "") { > $(this).css('color', '#333'); > }else{ > $(this).css(…
They are uploaded to my C:\Data\ directory but all the uploaded files are all 1 bytes size and if I check the content they have only “1” number written inside.

Could you please assist on solving the problem ?
 
Solved my problem by using

$file_tmp =$_FILES[‘image’][‘tmp_name’];

Instead of actually recording file on disk
 
Last edited:
Back
Top