Member Avatar

please i want to reduce the size of images when i am rendering it on my site. my site is very slow now. i want to accept any size now but when rendering please i want to reduce the size. thanks in advance

Member Avatar
+0 forum 3
Member Avatar

Hi Friends i am trying to upload the photos in my dynamic place through my script. my path will be specified below [B]$uploaddir = ../gallery/categoryname/name/[/B] when i was trying to upload the photo is not moved in the above path. unfortunatelly is it moved to [B]../gallery/[/B] Please help me to solve the issue [CODE]<?php include('../conn.php'); $id = $_GET['galleryid']; //echo $id; $qry="select * from gallery where gallery_id='$id'"; //echo $qry; $res=mysql_query($qry,$conn); $row=mysql_fetch_array($res); //$uploaddir = '../gallery'.'/'.$row["gallery_cat"].'/'.$row["gallery_name"].'/'; //echo $uploaddir; $path = '../gallery/'; $gallery_cat = $row['gallery_cat'].'/'; $gallery_name = $row['gallery_name'].'/'; echo $uploaddir = $path.$gallery_cat.$gallery_name; ?> <!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" dir="ltr"> …

Member Avatar
+0 forum 1
Member Avatar

Hi i am using array for uploading images but i am unable to insert it into database as well as in the folder. can anyone please help me to resolve it. $name = $_GET['name']; $gititle = $_POST['gititle']; $number_of_file_fields = 0; $number_of_uploaded_files = 0; $number_of_moved_files = 0; $uploaded_files = $_POST[$_FILES['images']['name'][$i]]; echo $uploaded_files; $upload_directory = '../images/gallery/'.$name.'/'.$gititle.'/'; echo $upload_directory; //set upload directory /** * we get a $_FILES['images'] array , * we procee this array while iterating with simple for loop * you can check this array by print_r($_FILES['images']); */ for ($i = 0; $i < count($_FILES['images']['name']); $i++) { $number_of_file_fields++; if ($_FILES['images']['name'][$i] != …

Member Avatar
+0 forum 1
Member Avatar

I already created application, now I want to add the "Submit Software/image/etc page", So i am having my own website in weebly which allows me only 10MB per File, and also I am link with mediafire, 2shared, 4shared etc hosting service, But what i need is that the user can browse their file and then they can submit me, Which will directly upload to the website/hosting service. Reason: i create mail sender and it's work, but it did not work when I send the exe file to someone as gmail pop up error. So Is there any way so that …

Member Avatar
+0 forum 2
Member Avatar

Hi, I am a complete newbie when it comes to php. I have been searching google for a way to upload multiple pictures to a directory at one time, and at the SAME time store each pictures path into a table in the database. I have found several examples of upload scripts, but how would i get each pictures path stored in the database? Also, is there a way to have an unlimited amount of upload fields in php, or will it always be a fixed amount just as I have THREE fixed fields below: [CODE] <input name="uploaded" type="file" /><br> …

Member Avatar
+0 forum 37
Member Avatar

Dear Friends i want to add a progrress bar in this uploader please help me ... Imports System.IO Imports System.Net Public Class Form1 Private Sub btnUpload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpload.Click Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.FtpWebRequest.Create("ftp://ftp.uibonline.com/uibsat/saleem.jpg"), System.Net.FtpWebRequest) request.Credentials = New System.Net.NetworkCredential("ksauib@uibonline.com", "123456") request.Method = System.Net.WebRequestMethods.Ftp.UploadFile Dim file() As Byte = IO.File.ReadAllBytes("C:\saleem.jpg") Dim strs As IO.Stream = request.GetRequestStream() strs.Write(file, 0, file.Length) MsgBox("File Uploaded", MsgBoxStyle.Information) strs.Close() strs.Dispose() End Sub End Class

Member Avatar
+0 forum 1
Member Avatar

this is my code which working,and every image is posted with it's original name but i want it to have little one.. i want it to overwrite the uploaded image <?php error_reporting(0); $change=""; $abc=""; define ("MAX_SIZE","400"); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } $errors=0; if($_SERVER["REQUEST_METHOD"] == "POST") { $image =$_FILES["file"]["name"]; $uploadedfile = $_FILES['file']['tmp_name']; if ($image) { $filename = stripslashes($_FILES['file']['name']); $extension = getExtension($filename); $extension = strtolower($extension); if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) { $change='<div class="msgdiv">Ukendt …

Member Avatar
+0 forum 1
Member Avatar

Hello, I am really new to PHP, so sorry if this is way too basic. I followed this tutorial: [url]http://net.tutsplus.com/tutorials/php/online-file-storage-with-php/[/url] and I created a simple online storage app for my website. How would I be able to make it so that I can delete the stored files? Thanks

Member Avatar
+0 forum 1
Member Avatar

Hi all . . i need to develop an uploader for my website . . i done it . but the progress bar not working . . plz do help me .. thanks in advance . . --Karthik this is my code . aspx page : [CODE]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!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 runat="server"> <title>File Upload page</title> <style type="text/css"> #container { background-color:silver; } </style> </head> <body> <form id="form1" runat="server"> <div id="container"> <asp:FileUpload ID="FileUpload1" runat="server" /> <br/> <asp:FileUpload ID="FileUpload2" runat="server" /> <p> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="upload" Width="83px" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; …

Member Avatar
+0 forum 2
Member Avatar

hello guys! I am looking for a large upload script. A script that can carry files like a movie on 1GB up to my server. # i got the host and the required settings. But i need a script with progress bar etc. I am willing to pay for it. If you know any, please reply. Cheers, Sorcher

+0 forum 0
Member Avatar

hello guys! I am looking for a large upload script. A script that can carry files like a movie on 1GB up to my server. # i got the host and the required settings. But i need a script with progress bar etc. I am willing to pay for it. If you know any, please reply. Cheers, Sorcher

+0 forum 0
Member Avatar

hello guys! I am looking for a large upload script. A script that can carry files like a movie on 1GB up to my server. # i got the host and the required settings. But i need a script with progress bar etc. I am willing to pay for it. If you know any, please reply. Cheers, Sorcher

Member Avatar
+0 forum 2
Member Avatar

My site is broken into three different categories (which are stored on 3 separate tables) and I am looking at creating a functionality to let a user upload photos. Ideally, I would like the following to happen: [LIST=1][*]A user is viewing a single retail store on the site, for example and clicks "upload photos" [*]The user is prompted with a box that allows them to upload multiple photos simultaneously. These photos need to be "tagged" or associated with this particular store so they can be displayed later (more on that in a bit) [*]On upload, the files are renamed and …

Member Avatar
+0 forum 1
Member Avatar

Hey guys, I got this code to upload an FTP file which works great, but what do I do when I wnat to upload the contents of an entire folder? I mean, I could make a for-each but that would mean disconnecting and reconnecting to the FTP server alot of times which is just uneccesary. Any ideas? [CODE] Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://ftp.blabla.com/mybackups.zip"), System.Net.FtpWebRequest) request.Credentials = New System.Net.NetworkCredential("user", "pass") request.Method = System.Net.WebRequestMethods.Ftp.UploadFile Dim file() As Byte = System.IO.File.ReadAllBytes("c:\mybackups.zip") Dim strz As System.IO.Stream = request.GetRequestStream() strz.Write(file, 0, file.Length) strz.Close() strz.Dispose()[/CODE]

Member Avatar
+0 forum 4
Member Avatar

Hello I want to put an advanced file uploader, for uploading a few files at once, and also for big files. The support for big files is critical, so if a user wants to upload 2GB file, and it get stuck in the middle, it can continue from the same place later. I'm looking for a good open source tool to help me do this. Thanks

+0 forum 0
Member Avatar

Hi, I currently created a video uploader, but when the video is too big in size, the page seems to be not doing any until the video is completely uploaded. I want to put somewhat like "loading.. please wait" script until the video is not completely uploaded. Thanks. //Ana

Member Avatar
+0 forum 2
Member Avatar

Can someone help me insert a "white list" in this code? i already have a black list in it but thats pretty stupid when i only want these extensions; 'jpg', 'gif', 'png', 'bmp', '2bp', 'abm', 'afx', 'apd', 'art', 'arw', 'avatar', 'bm2', 'bmc', 'bmf', 'cal', 'cals', 'cam', 'can', 'cd5', 'cdg', 'cdg', 'cit', 'fax', 'yuv' [CODE]<?php // Check if a file has been uploaded if(isset($_FILES['uploaded_file'])) { // Make sure the file was sent without errors if($_FILES['uploaded_file']['error'] == 0) { // Connect to the database $dbLink = new mysqli('xxxxxxx', 'xxxx', 'xxxxx', 'xxxxxxxx'); if(mysqli_connect_errno()) { die("MySQL connection failed: ". mysqli_connect_error()); } $userid = $_SESSION['loginid']; …

Member Avatar
+0 forum 2
Member Avatar

[B]Greetings![/B] Anyone here who can correct my code? I'm abit noob to PHP, just started learning. The Ban file function of mine does the echo but it wont stop the file upload. Any idea? have i inplented it wrong or do i miss a line? Love you long time if you correct it.. +1 ! [CODE]//Ban file if executable! $blacklist = array(".php", ".phtml", ".php3", ".php4", ".js", ".shtml"); foreach ($blacklist as $item) { if(preg_match("/$item\$/i", $_FILES['uploaded_file']['name'])) { echo "ERROR: Uploading executable files Not Allowed\n"; exit; } }[/CODE] Here is the complete script. [CODE]<?php // Check if a file has been uploaded if(isset($_FILES['uploaded_file'])) …

Member Avatar
+0 forum 3
Member Avatar

I have downloaded and implemented Uploadify because users were tired of having to browse to each and every file they needed to upload(since this is used for uploading multiple pictures) allows a user to select multiple pictures at once without having to click a "BROWSE" button to go fetch each picture. The problem is, I NEED to use MY upload.php script in order for it to meet the needs of my project. However, i'm not all that great at php, and it took me hours to get my own upload script to work. Now, I don't know how to get …

Member Avatar
+0 forum 1
Member Avatar

I have created a script that lets you upload multiple pictures, but the down side is that I have to browse to each and every picture to select it. - Which is very inefficient, especially because I am putting this all together for a photographer to allow her to upload photos for her clients to view (which cab be up to 100 pictures per client). Is there a way to upload multiple pictures at one time without having to browse to each and everyone to select it? The thing is, my script also inserts the path of the picture into …

Member Avatar
+0 forum 4
Member Avatar

Hi all, I need to build a upload-download system similar to mediafire. Is there some customizable open source systems available, which i can download and cuztomize or I have to do it from start. What all things to be take care about. In my case atmost 500 MB of collective data have to be uploaded-Downloaded at once (Multiple Upload at once). Then the questions like "Server specifications to be used", "PHP settings like Max upload size, Execution time" etc arise. Please guide me with the steps to develop a system in PHP-Mysql. Cheers Sanju

Member Avatar
+0 forum 7
Member Avatar

Ok, so I am creating an uploader for uploading files such as .udk or .upk as well as other basic files such as txt and html. But I have been tinkering with the code I found (i'm a noob) and I can't get it to accept those extra extensions. Here is my code: [CODE]<?php if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "udk") || ($_FILES["file"]["type"] == "upk") || ($_FILES["file"]["type"] == "application/exe") || ($_FILES["file"]["type"] == "image/png") || ($_FILES["file"]["type"] == "image/bmp") || ($_FILES["file"]["type"] == "image/jpeg") && ($_FILES["file"]["size"] < 20000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br …

Member Avatar
+0 forum 2

The End.