In my cards and scripts, loading files work fine by pressing the BROWSE button (I made a button for each upload and labelled it BROWSE). You click it and a file box comes up with the proper filters. Everything works great! However, when using the same card on the internet (a revlet), pressing the BROWSE button does nothing.
Is there some special procedure or syntax I have to follow to use file requesters from a revlet?
Here is my code:
=============================
# Start by getting the file to upload
local tFileForUpload, tFileName
answer file "Select a file to upload" with filter "Video Files,*.avi;*.mpg;*.mp4;*.mov;*.wmv"\
put it into tFileForUpload
# Get the name of the file for upload
set the itemdel to "/"
put the last item of tFileForUpload into tFileName
put empty into field "fldVidLink"
# Connect the start the upload
local tDestination
put "http://www." & "travelandworkusa.com" &FilePath &tFileName into tFieldDest
put "ftp://" & FTPUSER & ":" & FTPPASS & "@" & "ftp.travelandworkusa.com" &FilePath & tFileName into tDestination
libURLSetStatusCallback "uploadProgress", the long ID of me
put the long ID of me into progressmeter
libURLftpUploadFile tFileForUpload, tDestination, "uploadComplete"
put tFieldDest into field "fldVidLink"
end mouseUp
on uploadComplete pURL, pStatus
put "Status Update:" && pStatus && return after field "lblProgress"
end uploadComplete
on uploadProgress pURL, pStatus
put "Status Update:" && pStatus && return before field "lblProgress"
--set the thumbpos of sb "prgScrollBar" to progressmeter
end uploadProgress
=============================================
Anything wrong with this as it pertains to FTPing to the server from a local file - from the context of a revlet online?
After going through it, it's the FILE REQUESTER that is not working for me. I can FTP fine. I included ALL the libraries in the stand alone settings, just in case.
So, does anyone know why the file requester would not come up in a revlet? How can I fix this - it's MAJOR for me to fix this.
Thanks.
Mike
EMERGENCY - file requester not working in a revlet!!!
LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Return to “Getting Started with LiveCode - Experienced Developers”
Jump to
- LiveCode Community
- ↳ Announcements
- ↳ Developer Services Marketplace
- ↳ User Groups and Events
- ↳ SoCal LiveCode Group
- ↳ Greater Toronto Area LiveCode Users Group
- ↳ Off-Topic
- ↳ Made With LiveCode
- Getting Started With LiveCode
- ↳ Getting Started with LiveCode - Complete Beginners
- ↳ Getting Started with LiveCode - Experienced Developers
- ↳ Converting to LiveCode
- Developing With LiveCode
- ↳ Talking LiveCode
- ↳ Databases
- ↳ Games
- ↳ Internet
- ↳ Multimedia
- ↳ Software Engineering
- ↳ Version Control
- ↳ Feature Proposals
- ↳ Bug Triage
- Extending LiveCode
- ↳ Using Plugins for Customizing the LiveCode IDE
- ↳ Using Externals
- ↳ Making IDE Plugins
- ↳ Building Externals
- ↳ LiveCode Builder
- Platform Specific
- ↳ Windows
- ↳ Mac OS
- ↳ Linux
- ↳ iOS Deployment
- ↳ Android Deployment
- ↳ CGIs and the Server
- ↳ HTML5
- ↳ Raspberry Pi
- Academic Endeavors
- ↳ Teaching with LiveCode
- ↳ Research and Post Secondary
- ↳ LiveCode University
- ↳ Educational Outreach
- Livecode Open Source Archived Forum- closed to posting
- ↳ Engine Contributors
- ↳ IDE Contributors
- ↳ Documentation and Tutorials
- ↳ Brainstorms
- ↳ Community Projects
- LiveCode Hosting