497 Topics

Member Avatar for
Member Avatar for ramsiva

In my project i have a problem is: Without clicking browse button we have to get name using <input type="file"> any body help me to clear this one <img src="<?php echo $image; ?>" style="width:190px; height:150px;" /> <input type="file" name="userfile" id="userfile" value="<?php echo "Penguins.jpg"; ?>"> i am not getting the userfile

Member Avatar for cereal
0
195
Member Avatar for PulsarScript

Hi can anyone help with EER diagram,have databse,but need EER diagram,in workbench backword engineer does not create the relationships automatically.Need to set up manually.Just for 4 tables.Can someone help? I will upload then my database file.Thanks

0
105
Member Avatar for phoenix254

My problem is why this codes dont work. i want to upload image with hide input type file but doesnt work. here are my codes.. <form action="" method="post" enctype="multipart/form-data"> <div id ="settingmaincontainerright"> <input type="file" id="settingprofileimgfile" name ="settingprofileimgfile" > <input type="submit" id="settingprofileimgfilebutton" name="settingprofileimgfile" value="Choose Foto"> <input type="submit" id="settingprofileimgbutton" name="settingprofileimg" value="Upload Foto"> …

Member Avatar for JorgeM
0
164
Member Avatar for vizz

I have database 'website' having fields - title, url, snapshot to collect information of websites . Users will fillup the form so, There is no file input for fileupload. Form have inputs for title & url. How to generate snapshot using 'imagegrabwindow' or other php functions for given url? How …

Member Avatar for chrishea
0
157
Member Avatar for Kamal_6

hi, i am a begineer in php, i have written the below code to upload all file type except executable file (.exe file), but whenever i run it in web browser like mozzila it works for me but whenever i try it in google chrome it does not work i …

Member Avatar for cereal
0
137
Member Avatar for Kamal_6

Hi, i am a beginer in php, before few days back i learned about file uploading in php, but i tried a lot ot run the progarm in browser but it shows warning messesege : **Warning: POST Content-Length of 39895242 bytes exceeds the limit of 8388608 bytes in Unknown on …

Member Avatar for cereal
0
168
Member Avatar for phoenix254

I am trying to creating a website, i want to know which of these function is more secure to upload the image on database ? 1.) getimagesize 2.)get_file_contents 3.)cURL Thanks a lot!!!

Member Avatar for cereal
0
643
Member Avatar for phoenix254

if ($count == 1){ $suc= move_uploaded_file($file_tmp, $destin.$file_name); echo"<br/>"; $query = mysqli_query($con,"INSERT INTO login ( profile_img) VALUES ('$file_name') WHERE useremail='".$_SESSION["sess_useremail"]."'") or die("can t still upload ".mysql_error());}

Member Avatar for pritaeas
0
174
Member Avatar for coder91

Hi, for the project I am working on I have four folders all which have 650 xml files in them, I need to write a program that will take the first file from each of the folders and send them to a database where the results from the xml will …

Member Avatar for pritaeas
0
122
Member Avatar for Benny Adams

Can someone explain polymorphsm to me? Or upload a program that include polymorphm. Need some examples. Thanku

Member Avatar for DaveAmour
0
96
Member Avatar for showman13

Good Morning all, Hopefully someone can head me in the right direction. I know nothing about perl or cgi but have a script that I purchased and had modified by a programmer half way around the world. He uploaded it to my development domain and the script works just fine... …

Member Avatar for 2teez
0
323
Member Avatar for vizz

With following code I tried to upload image and video file at the same time but, image file is uploading & video file is not uploading <form class="pure-form pure-form-aligned" action="Processor.php" method="post" enctype="multipart/form-data" > <fieldset> <div class="pure-control-group"> <label for="image">Upload image</label> <input type="file" name="image" class="pure-input-1-4" /> </div> <div class="pure-control-group"> <label for="video">Upload video</label> …

Member Avatar for jj.dcruz
0
1K
Member Avatar for phoenix254

i am trying to create a site, when user create his account then make automatic his directory with his name. when he wants to upload his photos, these photos go automatic in his folder or directory. im my register page i have added these lines: $addtothedb="INSERT INTO login (firstname,lastname,useremail,password,Gender,Dateofbirth) VALUES …

Member Avatar for phoenix254
0
528
Member Avatar for uchejava

I am trying to save 2 photos to my MySQL database. I can only see one of the 2 photos in the database (i.e. its name) but I see the 2 photos in the folder I store my photos. ( A picture of how the database looks like is attached.) …

Member Avatar for amith_ami
0
202
Member Avatar for davy_yg

Hello, I am looking for ckeditor that's able to upload image from computer directly without url - unfortunately there is license on it. What about tinymce also works the same way. I do not know how to make ckeditor my own version that's able to upload file directly from computer. …

Member Avatar for davy_yg
0
299
Member Avatar for TMLAH

Hello, I have a script that allows user to upload a file to a mysql 5 database. That is working OK. The File size is accurate. However, my download script is for some reason downloading the files without any content - 0KB. The files are OK when I open them …

Member Avatar for abhisheklnt
0
6K
Member Avatar for DaveAmour

I get an errror when trying to upload a profile photo. The upload destination folder does not appear to be writable.

Member Avatar for DaveAmour
0
150
Member Avatar for fantyfiz

I write a code in html and want to create button that upload a file.I use the following code but it show button name choose files but i want the button show browse as display name kindly guide Filename: <input type="file" name="uploadFile" value="Browse">

Member Avatar for Kumar_K_K
0
208
Member Avatar for radu.campian

I need to create a form in php and mysql in which it will create a table on a default set database for example "ramgest" and i want it to be only one text field with table name and one file upload which will get the imported .csv into the …

Member Avatar for urtrivedi
0
250
Member Avatar for toplisek

I have tested many times Which browser and read instructions. It seems there are missing points at main app page: https://github.com/WhichBrowser/WhichBrowser Author: Niels Leenheer I have checked again and a little bit confused as this is the first time. 1. It will be under public_html 2. Cron job will update …

0
117
Member Avatar for Newbiejavagirl

I am a newcomer to java and jdbc. I am currently trying to develop a web application in which the user can upload a spreadsheet to the form. Is there any way in which contents of the uploaded spreadsheet can be saved to the database? I am working in eclipse …

Member Avatar for JamesCherrill
0
93
Member Avatar for OsaMasw

Hello guys have a nice day.. I have a problem need to be solved, I have upload script which save files in "/uploads" folder everything was going good until my boss decided to move upload file to storage server and need to store all files in "/etc/mnt/storage/uploads" so what should …

Member Avatar for cereal
0
2K
Member Avatar for malatamil

upload.php <form name="selectionForm" method="POST" action='query.php'> echo "<select name='$q2['type']'>"; //echo "<select name='selecttype'>"; echo "<option value='Regular Project'>Regular Project</option>"; echo "<option value='FSA Project'>FSA Project</option>"; echo "</select></td>"; echo "<input type='hidden' name='mid' value='$q2[0]'>"; echo "<td width='140'><textarea rows='2' name='comments[]' cols='20' ></textarea></td>\n"; echo "</tr>\n"; </form> query.php $selecttype = $_POST['selecttype']; instead of calling 'selecttype' i want to call …

Member Avatar for diafol
0
247
Member Avatar for AntonyRayan

For image upload , This is my code, What is the error, its not checking in else part if(!$('#upload').val()) { alert('Upload Your Photo'); $('#upload').focus(); return false; } else{ $('input[type=file]').change(function () { var val = $(this).val().toLowerCase(); var regex = new RegExp("(.*?)\.(jpg|jpeg|txt|png|docx|gif|doc|pdf|xml|bmp|ppt|xls)$"); if(!(regex.test(val))) { $(this).val(''); alert('Unsupported file'); } }); }

Member Avatar for AntonyRayan
0
180
Member Avatar for davy_yg

update_image2.php <?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Portal</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie7.css" /><![endif]--> <!-- JavaScripts--> <script type="text/javascript" …

Member Avatar for diafol
-2
260
Member Avatar for shubham2488

Hello i need help, I am creating a small social networking website in which i want dat a user can upload music files as well with some descriptions ,the description and file path should be stored in database and the mp3 file should be stored in a seprate folder i …

Member Avatar for diafol
0
279
Member Avatar for silverdust

I'm trying to implement upload on [my application](http://github.com/bl4ckdu5t/vitabiotics). I'm hosting the application on Heroku, and I'm using S3. I've created a bucket and I've followed [this guide](https://devcenter.heroku.com/articles/paperclip-s3) trying to make it all work. But it still fails and I get no errors. The uploaded images never get to the bucket.

0
269
Member Avatar for ddanbe

I wanted to upload an excel file with one of my threads, but it is refused. Do I have to zip it first and if so, why?

Member Avatar for Dani
0
330
Member Avatar for riwakawd

When there should be a error it does not show. I can not seem to get the erorrs to work in the correct order How can I improve my file upload errors to work in correct order? public function upload() { $name = $_FILES['userfile']['name']; $tmp_name = $_FILES['userfile']['tmp_name']; $type = $_FILES['userfile']['type']; …

Member Avatar for riwakawd
0
350
Member Avatar for riwakawd

When I upload I can upload single files fine but, I cannot seem to upload if input is like **<input type="file" name="file[]">** I am not sure on my php upload function how to make it allow multiple files? Thanks in advance. public function upload() { $this->load->library('request'); $directory = FCPATH .'upload/'; …

Member Avatar for riwakawd
0
249

The End.