|
| Iniciado por guest, 02,feb. 2015 20:36 - 8 respuestas |
| |
| | | |
|
| |
| Publicado el 02,febrero 2015 - 20:36 |
Hi,
Does anyone know how to use this Upload Edit control that has the "Browse..." button beside it to upload a file? Seeing how it's used on this Forum to upload an image, it looks like I need a separate "Attach" button for the UploadCopyFile function. How is that done?
[attachment 1331 Upload_Editbox.png]
Thanks in advance for any help on this... |
| |
| |
| | | |
|
| | |
| |
| Publicado el 02,febrero 2015 - 21:00 |
Hi,
Look at the examples. The forum example has an upload option of a picture of a member.
Regards
Allard |
| |
| |
| | | |
|
| | |
| |
| Publicado el 02,febrero 2015 - 21:58 |
Hi,
Thanks Allard... but where are the examples? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 03,febrero 2015 - 17:16 |
Hi,
Make a new site based on a rad template, for instance forum. The rad will generate the whole application for you.
regards Allard |
| |
| |
| | | |
|
| | |
| |
| Publicado el 03,febrero 2015 - 21:06 |
Hi,
Thank you Allard for your reply...
Has anyone else done that, who would share the "Attach" code for Single Upload, separate Browse and Attach buttons?
Thanks Again... |
| |
| |
| | | |
|
| | |
| |
| Publicado el 04,febrero 2015 - 00:32 |
| I thought all the code was already there, you only have to add the destined directory of the file, it is in version 18 anyway. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 04,febrero 2015 - 07:53 |
Hi Randall,
In you processing button: //Browser code IF UPL_UPLOAD ~= "" THEN Info("Please select a file") ReturnToCapture(UPL_UPLOAD) END CELL_Wait..Visible=True //Server code sFile is string sFile = sTempDir+UploadCopyFile(UPL_UPLOAD, sTempDir, "") IF sFile<>"" THEN //do processing of file END If you want the action to start automatically, you can place "Executeprocess(btn_Upload,trtClick" in the UPL_Upload "Exit with modification" code and make btn_Upload invisible.
Regards,Piet |
| |
| |
| | | |
|
| | |
| |
| Publicado el 04,febrero 2015 - 12:01 |
Hello Randall
from the back and forth, I think that I understand the problem
The upload button is NOT a regular field where you put some code
It is a specific field that you select in the drop down of the edit field as the upload field...
So there is really nothing to code at that level, and the help file on the upload function contains all the examples that you'll need to use it...
Just be careful, there are TWO versions: the regular one, uploading ONE file at a time, the new and improved (needing FLASH) version managing multiple files.
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 06,febrero 2015 - 14:58 |
Thank you all for your replies... I haven't sorted through them yet to see if what I'm looking for is here, but I thought it would be good to clarify with a picture what I described as the Upload button found on these web pages when you attach a file.
[attachment 1336 upload.png]
The code behind the button is what I'm looking for... Thank you again for your help on this... |
| |
| |
| | | |
|
| | | | |
| | |
|