|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
image
hi
i wish to enable users to submit an image on one of the fields on the form within an asp page. essentially i suppose they would submit it as an attachment though it would be entered and stored in the access dbase, from which it would be pulled in connection with specific text fields. i'm using ultradev though trying to use an input field though it seems to talk about retrieving data. can this image as a field collection by done on the input with asp form ? cheers chris |
|
#2
|
|||
|
|||
|
not
sure I understand everything but from what I understand, is that you want to allow users to select a *file* on their machine and submit your <form>...</form>.
Once submitted, you want to retrieve the file and save it INSIDE your Access database. If that is the scenario you are looking for then: 1) You must use an upload component(unless you create your own using VB for example) 2) Once the file has been uploaded(using the component) I *strongly* suggest saving the *PATH* to the file inside your Access database instead of the entire file. Why? Well for many reasons and one of them would be that your database will really increase in size which can lead to performance lost in the long run. 3) So save the file someone on the hard drive of your web server and INSERT the path inside your field. You can use any editor you want/have but one thing for sure is that none of them will, by a simple click of a wizard, code everything for you. You will have to get your hands dirty ![]() The good thing is that any upload component comes with asp code example so this can really help. Hope this helps! Sincerely Vlince |
|
#3
|
||||
|
||||
|
Please use an appropriate subject title next time. You can view the sticky thread at the top of this forum for more information on how to post a question.
|
|
#4
|
|||
|
|||
|
thanks for that vlince.
do you know of any examples of this ? what is teh code on the form for example which will enable the user to uplaod the file to my webserver ? also how do i provide the fucntionality to enable them to enter the location of their file ? what should i do enable them to submit multiple files ? are all these questions answered when using an upload component ? cheers |
|
#5
|
|||
|
|||
|
---BEGIN QUOTE---
do you know of any examples of this ? ---END QUOTE--- The entire web is full of code example, try searching google.com for any example. Even better, once you've decided on the *component* you'll use, then they usually have/give code example on *how to use it with asp*. Try looking for safileup that's just one of them... ---BEGIN QUOTE--- what is teh code on the form for example which will enable the user to uplaod the file to my webserver ? ---END QUOTE--- Again, you'll find the code in the documentation(or on the company's web site) that comes with the component. ---BEGIN QUOTE--- also how do i provide the fucntionality to enable them to enter the location of their file ? ---END QUOTE--- Use a simple html control like this: <input type="file" name="strFileName"> This will show an html control kinda looks like a <textbox> but is followed by a <browse> button that once clicked, will open a dialogue box so that the user can select/chose the filen he/she wants to upload. Check out the documentation or search google.com for more info on that html control. ---BEGIN QUOTE--- what should i do enable them to submit multiple files ? ---END QUOTE--- Well if it works with uploading *one* file don't you think you'll manage to make it work for multiple ? I mean think of it for a second...if you want them to upload two file at once then you'll need two <input type="file"> box's no? If its four then create four <input type="file"> box's and if its five then...you get it right? ---BEGIN QUOTE--- are all these questions answered when using an upload component ---END QUOTE--- Answered? Hummm I don't know but it certainly gona help. The documentation that comes with the component comes with examples(code) so try it you'll see! Hope this helps! Sincerely Vlince |
|
#6
|
|||
|
|||
|
cheers,
i found one at asp smart which answered most of my questions. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Submitting images through ASP(Use to be:image) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|