By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,138 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

uploading video or image file

P: 17
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
Share this Question
Share on Google+
8 Replies


Expert 100+
P: 1,892
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

P: 17
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

Expert 100+
P: 1,892
Where are the videos stored? You will probably want to do this in your php upload code.
Nov 28 '06 #4

P: 17
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

P: 1
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
Expert Mod 15k+
P: 16,027
You will need some server-side code to deal with that. Do you need javascript help?
Feb 20 '07 #7

sumittyagi
Expert 100+
P: 202
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
Expert Mod 15k+
P: 16,027
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

Post your reply

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