473,834 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

uploading video or image file

17 New Member
Hi guys !
I have a form, in which I want users to upload either video or image . What I want to ask is how I can set it up so, that when a user tries to upload a image when there is already a video file in the video field ...the video field gets cleared out and vice versa .
Any suggestions ?
Thanks
Nov 28 '06 #1
8 5125
AricC
1,892 Recognized Expert Top Contributor
What code do you have thus far? You are going to need some server side scripting to upload files to a webserver.
Nov 28 '06 #2
scriptee
17 New Member
What code do you have thus far? You are going to need some server side scripting to upload files to a webserver.
Hi AricC,
I am using PHP ....uploading is not a problem that part is working great. I just want to make a client side validation for this.
Thanks
Nov 28 '06 #3
AricC
1,892 Recognized Expert Top Contributor
Where are the videos stored? You will probably want to do this in your php upload code.
Nov 28 '06 #4
scriptee
17 New Member
Where are the videos stored? You will probably want to do this in your php upload code.
Thanks for your response.
I solved my issue.
I wanted a client side validation and Javascript "getElementById () " did the trick for me.:)

Thanks
Nov 29 '06 #5
jayasathya
1 New Member
Hi AricC,
i wana code for uploading the videofiles.i just have some minar confusion in that ..pls help me
Feb 20 '07 #6
acoder
16,027 Recognized Expert Moderator MVP
You will need some server-side code to deal with that. Do you need javascript help?
Feb 20 '07 #7
sumittyagi
202 Recognized Expert New Member
I have a query in uploading images.
we upload images by using <input type='file' name='abc'/> tag.

now if we want to get the size of image before submitting it(i.e. at onsubmit), then is it possible in javascript, or it could be done at server side only.
Mar 5 '07 #8
acoder
16,027 Recognized Expert Moderator MVP
In most cases, it is only possible on the server-side. In IE (not sure about IE7), you can access local files, so you can use the fileSize property. This won't work in other browsers.
Mar 5 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2235
by: Shufen | last post by:
Hi all, I have a form where users can use it to upload images into a file and save it into a directory. I have installed PIL and Image module and do a fair bit of reading on these module. But I don't know how can I use python to get the uploaded image file from the form. Can I use something like that:
7
8671
by: Roger Withnell | last post by:
I would like to check that an image file, selected by a user using fileUpload, is within certain parameters (width, height, filesize) and to display the image file so that the user can see the correct image has been chosen, before uploading it to the server. http://www.your-community.co.uk/TestImageArray.asp is an extract of the basic functions which work in IE but not in NN (the alerts are just tests to see what is going on). It...
1
1677
by: http://www.visual-basic-data-mining.net/forum | last post by:
I have a page where it requires user to upload an image file to the server. For the uploading, i am using HTML imput file control. Is there a way where after the user has selected a picture file, it will show the picture on the page ? Do i need to use java script for that ? TQ in advance for any help.
11
9583
by: Parrot | last post by:
Is there any routine I can call to reduce the size of an image file after uploading a file from a client. I am looking to reduce file sizes programmatically using C# in my web page after uploading. I know that Photoshop can do it but I need to do it dynamically in my web page. I tried doing it myself with some of the Bitmap thumbnail instructions but the resulting image is very bad. I need a file reduction routine that creates a good image...
0
1198
by: prakharv | last post by:
Hi All, I would like to upload a image file from my web page to the server using C(CGI scripting). Actually I am able to upload a text file using gcgi library but not image file. Please, if any one knows regarding this or has the source code for the same, please help me out. Any information on this topic will be appreciated. Thanks And Regards, Prakhar
0
1226
by: beary | last post by:
When uploading video and audio files to a mysql table, what sort of limitations are there, if any? Should the table be a particular type? Are there any catches I need to know about?
1
2271
by: klaydze | last post by:
hi, i don't know how to start my code in uploading an image using open file dialog control. any one who can help me? i want to view the picture that i want to upload using open file dialog and show it in Picturebox. Any one can help me with this. thanks in advance
6
1843
by: mfaisalwarraich | last post by:
hi every body, i am using the following code to upload an image. it directly jumps to the error message please tell me what im doing wrong here. <form name="myform" enctype="multipart/form-data" method="post" action=""> Upload Album/Artist Image : <input type="file" name="imguploader"> <br /> <input type="submit" value="uploadnow" name="yes" /> </form>
1
4760
by: Moinoddin | last post by:
i am facing problem in creating video thumbnail. i am working on xampp server. i want to capture video thumbnail while uploading video. If anybody knows then please get back to me...
2
4447
by: sidhx | last post by:
how can i let image overwriting when uploading? and if uploading an image say "logo.jpg" and if a file already existing say "logo.png" then, how can i replace the file logo.png to logo.jpg(which has same name but different extension)? Ex: I want replace logo.jpg with logo.png or any image extension file. In my code while uploading the image i rename the upload image name to "logo" and add extension it had been provided.
0
9797
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9644
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10793
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10509
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9331
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7757
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6954
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5626
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5793
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.