i tried uploading a file in lucee and used this to...
# lucee
s
i tried uploading a file in lucee and used this to extract name and got null
Copy code
GetPageContext().formScope().getUploadResource('#arguments.fieldName#').getName()
z
Why not use the standard approach
💯 1
s
and what is the standard approach
to get the filename before upload
z
it's already uploaded
a
You can't expect to run code on the server and detect things that are still on the client machine. How would that work? @Simone do you actually understand how.... web... requests... work? I mean seriously? Do you?
(cos like really a lot of CFML devs I've encountered don't. (somewhat mindbogglingly)
c
Is there a code of conduct for this cfml workspace? The above is not particularly helpful or welcoming to someone trying to learn..
s
well, i solved it and @Adam Cameron and saying its not possible, is just all wrong, Thanks for coming back to my question again
i do not know but its just a vibe which keeps me challenging new things and finding answers, not always going by the road, something you have to find ways 🙂
a
saying its not possible, is just all wrong
Um. OK then. I'll play your game. How can the CFML server "get the filename before upload"?
c
@Adam Cameron I don’t disagree that some devs don’t know the fundamentals, my comment is directed more at the condescending tone you’ve used toward someone asking for help.
a
And that's worth a figuratively waving the code of conduct around is it? I see. TBH I'm not sure how to not sound a bit patronising when asking if a web dev understands how web dev works. I did try to use the ellipses to make myself sound hesitant that I was even asking (and, I thought, in a slightly light-hearted way. I'll stick to coding I guess ;-) FWIW I referred myself to the other admins, and those that replied confirmed I did not have a case to answer. So I did take your comment seriously in the official sense, if not really in a "seriously? That's how you've chosen to participate in the thread?" sense.